From db22c4cff2de44dadea535049539001ef3e87197 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Mon, 31 Mar 2025 11:00:30 +0800 Subject: [PATCH] chore: mv config --- {cfg => pkg/cfg}/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {cfg => pkg/cfg}/config.go (90%) diff --git a/cfg/config.go b/pkg/cfg/config.go similarity index 90% rename from cfg/config.go rename to pkg/cfg/config.go index b30ea0c..49ab3af 100644 --- a/cfg/config.go +++ b/pkg/cfg/config.go @@ -17,7 +17,7 @@ type TMDB struct { func LoadConfig() (*Config, error) { viper.SetConfigName("config") // name of config file (without extension) - viper.SetConfigType("yml") // REQUIRED if the config file does not have the extension in the name + viper.SetConfigType("yml") // REQUIRED if the config file does not have the extension in the name viper.AddConfigPath(".") viper.AddConfigPath("/app/data")