Skip to content

bingoohuang/gotrial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-trial

golang 试验田

gossh

test ssh in golang

env GOOS=linux GOARCH=amd64 go build -o gossh.linux.bin

bingoobjca@bogon ~/g/s/g/b/g/gosshmain> ./gosshmain
Usage of ./gosshmain:
  -P string
    	password
  -f string
    	scripts file
  -h string
    	host
  -p int
    	port (default 22)
  -s string
    	scripts string
  -t string
    	prompt tip (default ">")
  -u string
    	user, default to current user

randimg

create randomized image in jpg/png format.

bingoobjca@bogon ~/g/s/g/b/g/randimgmain> ./randimgmain -h
flag needs an argument: -h
Usage of ./randimgmain:
  -f string
    	picture format(png/jpg) (default "png")
  -h int
    	picture height (default 320)
  -i int
    	how many pictures to create (default 1)
  -m int
    	fixed size(MiB)
  -s int
    	picture sequence number
  -w int
    	picture width (default 640)

demo image: image

About

golang 试验田

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published