(v *viper.Viper, configPath string)
| 17 | const appData = "AppData" |
| 18 | |
| 19 | func SetupConfigFile(v *viper.Viper, configPath string) { |
| 20 | v.SetConfigName(configName) |
| 21 | v.SetConfigType(defaultConfigFileType) |
| 22 | v.AddConfigPath(configPath) |
| 23 | } |
| 24 | |
| 25 | func setDefaults(v *viper.Viper) { |
| 26 | v.SetDefault(constants.ConfigUrl, "") |