Documentation ¶
Index ¶
- func FirstNonEmptyBool(v *viper.Viper, keys ...string) bool
- func FirstNonEmptyInt(v *viper.Viper, keys ...string) (int, bool)
- func FirstNonEmptyString(v *viper.Viper, keys ...string) (string, bool)
- func GetString(v *viper.Viper, key string) string
- func GetStringMapString(v *viper.Viper, prefix string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstNonEmptyBool ¶
FirstNonEmptyBool accepts multiple keys and returns the first non empty bool value from viper.Viper via these keys. Non-empty meaning false value will not be accepted.
func FirstNonEmptyInt ¶
FirstNonEmptyInt accepts multiple keys and returns the first non empty int value from viper.Viper via these keys. Non-empty meaning 0 value will not be accepted. Will return false as second parameter, if non-empty int value could not be retrieved.
func FirstNonEmptyString ¶
FirstNonEmptyString accepts multiple keys and returns the first non empty string value from viper.Viper via these keys. Non-empty meaning "" value will not be accepted. Will return false as second parameter, if non-empty string value could not be retrieved.
Types ¶
This section is empty.