Skip to content
Snippets Groups Projects

Use config package to handle all controller configurations

Merged Ghost User requested to merge istaester/provide-config-package into develop
Compare and Show latest version
4 files
+ 8
9
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
0
@@ -98,6 +98,10 @@ func initConfig() {
viper.SetConfigType(configType)
viper.SetConfigName(configName)
// Viper will crash if you call 'WriteConfig()' and the file does
// not exists yet.
// Therefore we handle this case here.
// Inspired by //https://github.com/spf13/viper/issues/430#issuecomment-661945101
configPath := filepath.Join(configHome, configName+"."+configType)
_, err := os.Stat(configPath)
Loading