Documentation ¶
Index ¶
- func AllSettings() map[string]interface{}
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetInt(key string) int
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringSlice(key string) []string
- func Load(file ...string)
- func UnmarshalFile(configFile string, config interface{}) error
- func UnmarshalKey(key string, config interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalFile ¶
UnmarshalFile 解析整个配置到指定的结构中
func UnmarshalKey ¶
UnmarshalKey 根据key解析配置到指定的结构中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.