Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConfigNotSet = errors.New("配置文件路径未设置") ErrConfigFileNotFound = errors.New("配置文件未找到") ErrConfigReadFailed = errors.New("读取配置文件失败") )
View Source
var APP app
Functions ¶
This section is empty.
Types ¶
type AttrConfig ¶
type AttrConfig struct {
// contains filtered or unexported fields
}
******************** 配置文件属性 ********************
func Content ¶
func Content(content any) AttrConfig
func (AttrConfig) Register ¶
func (my AttrConfig) Register(settings *Setting)
type AttrDefaultName ¶
type AttrDefaultName struct {
// contains filtered or unexported fields
}
******************** 配置文件属性 ********************
func DefaultName ¶
func DefaultName(name string) AttrDefaultName
func (AttrDefaultName) Register ¶
func (my AttrDefaultName) Register(settings *Setting)
type AttrEnvName ¶
type AttrEnvName struct {
// contains filtered or unexported fields
}
******************** 配置文件属性 ********************
func EnvName ¶
func EnvName(envName string) AttrEnvName
func (AttrEnvName) Register ¶
func (my AttrEnvName) Register(settings *Setting)
type AttrFilename ¶
type AttrFilename struct {
// contains filtered or unexported fields
}
******************** 配置文件属性 ********************
func Filename ¶
func Filename(filename string) AttrFilename
func (AttrFilename) Register ¶
func (my AttrFilename) Register(settings *Setting)
type AttrOnChange ¶
type AttrOnChange struct {
// contains filtered or unexported fields
}
******************** 配置文件属性 ********************
func (AttrOnChange) Register ¶
func (my AttrOnChange) Register(settings *Setting)
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
******************** 配置文件 ******************** Setting
func (Setting) SetAttrs ¶
func (my Setting) SetAttrs(attrs ...SettingAttributes) Setting
type SettingAttributes ¶
type SettingAttributes interface{ Register(settings *Setting) }
******************** 配置文件属性 ********************
Click to show internal directories.
Click to hide internal directories.