1
0
Fork 0

Change setup function name

This commit is contained in:
Gregory Eremin 2015-01-18 17:55:18 +07:00
parent 30c24998be
commit f5a875b743
2 changed files with 5 additions and 3 deletions

View File

@ -23,10 +23,12 @@ type (
}
)
func main() {
confection.Setup()
func init() {
confection.SetupFlags()
flag.Parse()
}
func main() {
conf := Config{
DatabaseConfig: DatabaseConfig{},
}

View File

@ -18,7 +18,7 @@ var (
serverPort int
)
func Setup() {
func SetupFlags() {
flag.StringVar(&configPath, "config", "config.json", "Path to config file")
flag.IntVar(&serverPort, "config-port", 5050, "Config manager http port")
}