增加获取配置文件的方法

This commit is contained in:
2022-06-09 14:58:01 +08:00
parent 2709cd41e7
commit 9377cd288f
4 changed files with 59 additions and 0 deletions

View File

@ -51,3 +51,22 @@ type LogConfig struct {
TraceFieldName string
Skip int
}
// cfgFile 配置文件定义
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 14:47 2022/6/9
type cfgFile struct {
Path string `json:"path"` // 配置文件路径
Type string `json:"type"` // 配置文件类型
}
const (
// FileTypeYml tml
FileTypeYml = "yml"
// FileTypeYaml yaml
FileTypeYaml = "yaml"
// FileTypeJson json
FileTypeJson = "json"
)