增加获取配置文件的方法
This commit is contained in:
19
define.go
19
define.go
@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user