Documentation
¶
Index ¶
- func AppDataHome() string
- func GetConfig(name string) (val interface{}, exist bool)
- func GetConfigWithDefault(name string, def interface{}) interface{}
- func GetInt(name string) (val int64, ex bool)
- func GetString(name string) (val string, ex bool)
- func GetStringArray(name string) (val []string, ex bool)
- func Parse()
- func Set(name string, val typo.Any)
- type ConfigEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppDataHome ¶
func AppDataHome() string
func GetConfigWithDefault ¶
func GetConfigWithDefault(name string, def interface{}) interface{}
获取配置信息,如果不存在则返回指定的默认值def
func GetStringArray ¶
Types ¶
type ConfigEntry ¶
Click to show internal directories.
Click to hide internal directories.