perf ⚡ 优化配置文件加载

This commit is contained in:
linwenxiang committed 2021-06-09 16:30:24 +08:00
1 parent b8ab38308d
commit f35a808975
4 files changed
+5 -10

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func init() {
}
func run() {
config.Setup(file.NewSource, file.WithPath(configYml))
config.Setup(file.NewSource(file.WithPath(configYml)))
application, errs := json.MarshalIndent(config.ApplicationConfig, "", " ") //转换成JSON返回的是byte[]
if errs != nil {