Documentation ¶
Index ¶
- type Viper
- func (this *Viper) Get(key string) interface{}
- func (this *Viper) GetBool(key string) bool
- func (this *Viper) GetFloat64(key string) float64
- func (this *Viper) GetInt(key string) int
- func (this *Viper) GetInt32(key string) int32
- func (this *Viper) GetInt64(key string) int64
- func (this *Viper) GetString(key string) string
- func (this *Viper) GetStringSlice(key string) []string
- func (this *Viper) SetDefaultValue(defaultValue map[string]interface{})
- func (this *Viper) UnmarshalKey(key string, rawVal interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Viper ¶
type Viper struct {
// contains filtered or unexported fields
}
Viper 配置文件实例
func (*Viper) GetStringSlice ¶
GetStringSlice 获取配置字符串切片值
func (*Viper) SetDefaultValue ¶
SetDefaultValue 设置默认值
func (*Viper) UnmarshalKey ¶
UnmarshalKey 获取配置字符串map值
Click to show internal directories.
Click to hide internal directories.