Skip to content

Instantly share code, notes, and snippets.

@yanzay
Created December 19, 2016 08:54
Show Gist options
  • Save yanzay/8f4d493252b4815f31b28b02ce7391e6 to your computer and use it in GitHub Desktop.
Save yanzay/8f4d493252b4815f31b28b02ce7391e6 to your computer and use it in GitHub Desktop.
var (
listen = flag.Bool("l", false, "Listen")
host = flag.String("h", "localhost", "Host")
// Default 0 port means to choose random one
port = flag.Int("p", 0, "Port")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment