Documentation
¶
Overview ¶
Package viperfix provides functions to fix the missing of hirachical getting data when getting multiple values
Index ¶
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapFrom(v *viper.Viper, key string) map[string]interface{}
- func KeyDelimiter(delimiter string)
- func Sub(key string) *viper.Viper
- func SubFrom(v *viper.Viper, key string) *viper.Viper
- func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
- func UnmarshalKeyFrom(v *viper.Viper, key string, rawVal interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStringMap ¶
GetStringMap returns the value associated with the key as a map of interfaces.
func GetStringMapFrom ¶
GetStringMapFrom uses given viperinstance and returns the value associated with the key as a map of interfaces.
func Sub ¶
Sub returns new Viper instance representing a sub tree of this instance. Sub is case-insensitive for a key.
func SubFrom ¶
SubFrom uses given viperinstance and returns new Viper instance representing a sub tree of this instance. Sub is case-insensitive for a key.
func UnmarshalKey ¶
func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
UnmarshalKey takes a single key to unmarshals its values into a Struct.
func UnmarshalKeyFrom ¶
func UnmarshalKeyFrom(v *viper.Viper, key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
UnmarshalKeyFrom uses given viperinstance and takes a single key to unmarshals its values into a Struct.
Types ¶
This section is empty.