Documentation ¶
Overview ¶
Package config 负责配置信息
Index ¶
- func Env(envName string, defaultValue ...interface{}) interface{}
- func Get(path string, defaultValue ...interface{}) string
- func GetBool(path string, defaultValue ...interface{}) bool
- func GetFloat64(path string, defaultValue ...interface{}) float64
- func GetInt(path string, defaultValue ...interface{}) int
- func GetInt32(path string, defaultValue ...interface{}) int32
- func GetInt64(path string, defaultValue ...interface{}) int64
- func GetString(path string, defaultValue ...interface{}) string
- func GetStringMapString(path string) map[string]string
- func GetStrings(path string, defaultValue ...[]string) []string
- func GetUint(path string, defaultValue ...interface{}) uint
- func InitConfig(env string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶
GetFloat64 获取 float64 类型的配置信息
func GetStringMapString ¶
GetStringMapString 获取结构数据
func GetStrings ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.