Documentation ¶
Index ¶
- type Viper
- func (this *Viper) AutomaticEnv()
- func (this *Viper) Get(keyName string) any
- func (this *Viper) GetBool(keyName string) bool
- func (this *Viper) GetDuration(keyName string) time.Duration
- func (this *Viper) GetFloat64(keyName string) float64
- func (this *Viper) GetInt(keyName string) int
- func (this *Viper) GetInt32(keyName string) int32
- func (this *Viper) GetInt64(keyName string) int64
- func (this *Viper) GetIntSlice(keyName string) []int
- func (this *Viper) GetSizeInBytes(keyName string) uint
- func (this *Viper) GetString(keyName string) string
- func (this *Viper) GetStringMap(keyName string) map[string]any
- func (this *Viper) GetStringMapString(keyName string) map[string]string
- func (this *Viper) GetStringMapStringSlice(keyName string) map[string][]string
- func (this *Viper) GetStringSlice(keyName string) []string
- func (this *Viper) GetTime(keyName string) time.Time
- func (this *Viper) GetUint(keyName string) uint
- func (this *Viper) GetUint32(keyName string) uint32
- func (this *Viper) GetUint64(keyName string) uint64
- func (this *Viper) GetViper() *viper.Viper
- func (this *Viper) IsSet(keyName string) bool
- func (this *Viper) OnConfigChange(f func(string))
- func (this *Viper) Set(keyName string, value any)
- func (this *Viper) SetDefault(keyName string, value any)
- func (this *Viper) SetEnvPrefix(prefix string)
- func (this *Viper) WithBytes(data []byte, typ string)
- func (this *Viper) WithFile(fileName ...string)
- func (this *Viper) WithPath(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Viper ¶
*
- Viper 适配器 *
- @create 2021-9-25
- @author deatil
func (*Viper) GetDuration ¶
GetDuration
func (*Viper) GetSizeInBytes ¶
GetSizeInBytes, 暂未使用
func (*Viper) GetStringMap ¶
GetStringMap
func (*Viper) GetStringMapString ¶
GetStringMapString
func (*Viper) GetStringMapStringSlice ¶
GetStringMapStringSlice
func (*Viper) GetStringSlice ¶
GetStringSlice
Click to show internal directories.
Click to hide internal directories.