Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetString = viper.GetString // 获取字符串 GetBool = viper.GetBool // 获取 bool GetDuration = viper.GetDuration // 获取时间长度 GetInt = viper.GetInt // 获取整形 GetInt32 = viper.GetInt32 GetInt64 = viper.GetInt64 // 获取64位整形 GetUint = viper.GetUint GetUint16 = viper.GetUint16 GetUint32 = viper.GetUint32 GetUint64 = viper.GetUint64 GetTime = viper.GetTime GetIntSlice = viper.GetIntSlice GetFloat64 = viper.GetFloat64 GetStringSlice = viper.GetStringSlice GetStringMap = viper.GetStringMap GetStringMapString = viper.GetStringMapString GetStringMapStringSlice = viper.GetStringMapStringSlice GetSizeInBytes = viper.GetSizeInBytes )
导出函数, 如果需要使用其他函数. 参考: https://github.com/spf13/viper/blob/master/viper.go
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.