dip/utils/flags.go

11 lines
213 B
Go
Raw Normal View History

2020-01-27 21:16:08 +01:00
package utils
import "flag"
func Flags(host *string, port *string) {
flag.Usage = Usage
flag.StringVar(host, "host", "[::]", "Listen host")
flag.StringVar(port, "port", "8080", "Listen port")
flag.Parse()
}