perf ⚡ 优化配置文件加载
This commit is contained in:
1 parent
b8ab38308d
commit
f35a808975
4 files changed
+5
-10
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user