From 493f1937497e03ff7ae45493bca60797d301f34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 25 Nov 2024 18:49:16 +0800 Subject: [PATCH] fix config merge --- init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.go b/init.go index 9542aef..e37e5d2 100644 --- a/init.go +++ b/init.go @@ -51,7 +51,7 @@ func Init(configReceiver any, cliReceiver any, envReceiver any, fileReceiver any } // 合并配置数据 - if err = serialize.JSON.MergeDataForReceiver(fileReceiver, envReceiver, cliReceiver, configReceiver); nil != err { + if err = serialize.JSON.MergeDataForReceiver(configReceiver, fileReceiver, envReceiver, cliReceiver); nil != err { return errors.New("merge config data fail : " + err.Error()) } return nil