func parseCLI() { cfgPath, unixAddr := conf.CliArgs() settings.MakeConfig(cfgPath) if unixAddr != "" { settings.Gottp.Listen = unixAddr } }
func MakeConfig(cfg conf.Configurer) { cfgPath, unixAddr := conf.CliArgs() cfg.MakeConfig(cfgPath) settings.Gottp = *cfg.GetGottpConfig() if unixAddr != "" { settings.Gottp.Listen = unixAddr } }