Skip to content

Latest commit

 

History

History

flag

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

flag

install

go get github.com/tmpbook/go-app-core/pkg/common/flagV

cmd

go run main.go -h=8.8.8.8 -p=80 -o=true

output

------------------------------------------------------------------------------
 flags:
------------------------------------------------------------------------------
flag = h          value = 8.8.8.8        default = localhost     hostname
flag = o          value = true   default = false         open the page
flag = p          value = 80     default = 8888          port
8.8.8.8:80 true%