【更新】更新

This commit is contained in:
PandaGoAdmin
2022-08-02 17:19:14 +08:00
parent 791a23306c
commit 0555922a90
50 changed files with 678 additions and 450 deletions

View File

@@ -8,6 +8,8 @@ import (
"path/filepath"
)
var GConfig *Config
func InitConfig(configFilePath string) *Config {
// 获取启动参数中,配置文件的绝对路径
path, _ := filepath.Abs(configFilePath)
@@ -19,6 +21,7 @@ func InitConfig(configFilePath string) *Config {
}
// 校验配置文件内容信息
yc.Valid()
GConfig = yc
return yc
}