From a305700a69deb987f5e7cb40279def564470d130 Mon Sep 17 00:00:00 2001 From: eson Date: Fri, 10 Jul 2020 18:39:27 +0800 Subject: [PATCH] fix: config path error --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 9007be3..eb46132 100644 --- a/config.go +++ b/config.go @@ -29,7 +29,7 @@ type Config struct { // Load 加载yaml/yml配置 func (conifg *Config) Load() { var configfile string - configlist := []string{"./config.yaml", "./config.yml", "../../config.yml", "../../config.yaml"} + configlist := []string{"./config.yaml", "./config.yml", "../../config.yml", "../../config.yaml", "../../../config.yml", "../../../config.yaml"} for _, configfile = range configlist { if _, err := os.Stat(configfile); err == nil { log.Println("find config: ", configfile)