From 6272aa577ee16c39f30c12e9e710229f89991c16 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Thu, 26 Oct 2023 23:06:51 +0200 Subject: [PATCH] fix: :bug: fix config paths --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 35a49d1..987d736 100644 --- a/main.go +++ b/main.go @@ -11,8 +11,8 @@ import ( func main() { viper.SetConfigName("config") // name of config file (without extension) viper.SetConfigType("yaml") // REQUIRED if the config file does not have the extension in the name - viper.AddConfigPath("/etc/appname/") // path to look for the config file in - viper.AddConfigPath("$HOME/.appname") // call multiple times to add many search paths + viper.AddConfigPath("/etc/listy/") // path to look for the config file in + viper.AddConfigPath("$HOME/.listy") // call multiple times to add many search paths viper.AddConfigPath(".") // optionally look for config in the working directory viper.ReadInConfig() // Find and read the config file