Documentation
¶
Index ¶
- func BindEnv(keyName string, envName string)
- func Get(path string, defaultValues ...interface{}) string
- func GetBool(path string, defaultValues ...interface{}) bool
- func GetFloat64(path string, defaultValues ...interface{}) float64
- func GetInt(path string, defaultValues ...interface{}) int
- func GetInt64(path string, defaultValues ...interface{}) int64
- func GetString(path string, defaultValues ...interface{}) string
- func GetStringMapString(path string, defaultValues ...interface{}) map[string]string
- func GetUint(path string, defaultValues ...interface{}) uint
- func InitConfig(envPrefix string, appointedConfigPath string)
- func Set(name string, value interface{})
- func WriteConfig()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶
func GetStringMapString ¶
func InitConfig ¶
初始化配置信息,完成环境变量和config的加载
func WriteConfig ¶
func WriteConfig()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.