11 lines
213 B
Go
11 lines
213 B
Go
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()
|
|
}
|