Documentation
¶
Index ¶
- func Get(key string) any
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetIntSlice(key string) []int
- func GetSizeInBytes(key string) uint
- func GetString(key string) string
- func GetStringMap(key string) map[string]any
- func GetStringMapString(key string) map[string]string
- func GetStringMapStringSlice(key string) map[string][]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func GetUint(key string) uint
- func GetUint16(key string) uint16
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func GetUint8(key string) uint8
- func Parse()
- func Reset()
- func Set(key string, value any)
- func SetDefault(key string, value any)
- func Unmarshal(rawVal any, opts ...viper.DecoderConfigOption) error
- func UnmarshalExact(rawVal any, opts ...viper.DecoderConfigOption) error
- func UnmarshalKey(key string, rawVal any, opts ...viper.DecoderConfigOption) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetSizeInBytes ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringSlice ¶
func SetDefault ¶
func UnmarshalExact ¶
func UnmarshalExact(rawVal any, opts ...viper.DecoderConfigOption) error
func UnmarshalKey ¶
func UnmarshalKey(key string, rawVal any, opts ...viper.DecoderConfigOption) error
Types ¶
Click to show internal directories.
Click to hide internal directories.