package main import "flag" func parseFlags() config { sshPort := flag.Int("sshPort", 2222, "the port the ssh server is listening on") httpPort := flag.Int("httpPort", 8084, "the port the http server is listening on") flag.Parse() return config{ sshPort: *sshPort, httpPort: *httpPort, } }