From 93d5d9c04166b444fea6562a098dde26260da98f Mon Sep 17 00:00:00 2001 From: tangmingyou <234767776@qq.com> Date: Thu, 16 Feb 2023 17:29:26 +0800 Subject: [PATCH] conf path --- internal/conf/conf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/conf/conf.go b/internal/conf/conf.go index fb85fb0..1db4949 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -15,7 +15,7 @@ func init() { flag.StringVar(&confPath, "conf", "etc/config.toml", "default config path.") Conf = Default() - _, err := toml.DecodeFile("etc/config.toml", Conf) + _, err := toml.DecodeFile(confPath, Conf) if err != nil { panic(err) }