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
}
Setting setting struct
func NewSetting ¶
NewSetting create a setting entry. 默认filename文件类型是yaml文件,其他类型ini,json,yml等格式也支持
func (*Setting) GetSections ¶ added in v1.1.5
GetSections return sections.
func (*Setting) ReadSection ¶
ReadSection read section config.
func (*Setting) ReloadAllSection ¶
ReloadAllSection if config has changed reload all config.
func (*Setting) WatchSettingChange ¶
func (s *Setting) WatchSettingChange()
WatchSettingChange watch file change.
Click to show internal directories.
Click to hide internal directories.