From f470966d30486227827d01cd129f422d98f863bf Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 4 Jun 2024 10:25:46 +0900 Subject: [PATCH] =?UTF-8?q?config=EC=97=90=20env=20=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reflect_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflect_config.go b/reflect_config.go index bf17f7a..d2e7938 100644 --- a/reflect_config.go +++ b/reflect_config.go @@ -65,7 +65,7 @@ func LoadConfig[T any](outptr *T) error { return os.WriteFile(configfilepath, []byte("{}"), 0666) } - return json.Unmarshal(content, outptr) + return json.Unmarshal([]byte(os.ExpandEnv(string(content))), outptr) } type StorageAddr struct {