Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDir = func() string {
return getGlobalConfig().ConfigDir()
}()
ConfigDir 配置目录(向后兼容变量) 注意:这是一个函数调用,返回配置目录路径
Functions ¶
func Get ¶
Get 获取配置值(向后兼容接口) 使用全局配置实例,支持懒加载
func GetBool ¶ added in v0.7.9
GetBool 获取布尔配置值 支持 strconv.ParseBool 的格式:1/t/T/TRUE/true/True → true,0/f/F/FALSE/false/False → false 未配置或解析失败时返回 defaultValue
Types ¶
Source Files
¶
- config.go
- config_v2.go
- doc.go
Click to show internal directories.
Click to hide internal directories.