Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvPrefixedName ¶
EnvPrefixedName replicates the private viper.mergeWithEnvPrefix.
func IsSetInCommand ¶
IsSetInCommand provides a viper.IsSet alternative that works around a bug which causes IsSet to always return true if the config key is bound to cobra: https://github.com/spf13/viper/issues/276.
The workaround logic doesn't support the case where a flag both has a default value and was also erroneously marked as required.
func NewEnvSpace ¶
NewEnvSpace returns an initialized Viper instance configured to read all keys from an environment variable prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.