Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
func NewSetting ¶
NewSetting 初始化本项目的配置的基础属性 设定配置文件的名称为 config,配置类型为 yaml,并且设置其配置路径为相对路径 configs/
func (*Setting) ReadSection ¶
ReadSection 绑定配置文件
func (*Setting) ReloadAllSection ¶
ReloadAllSection 重新读取配置文件
func (*Setting) WatchSettingChange ¶
func (s *Setting) WatchSettingChange()
WatchSettingChange 监听配置文件
Click to show internal directories.
Click to hide internal directories.