Added config directory

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
main
Marcus Noble 9 months ago
parent b195ec9e4d
commit f7af7212a4
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
  1. 1
      main.go

@ -11,6 +11,7 @@ func main() {
viper.SetConfigType("yaml")
viper.SetConfigName("urls")
viper.AddConfigPath(".")
viper.AddConfigPath("/config")
if err := viper.ReadInConfig(); err != nil {
panic(err)
}

Loading…
Cancel
Save