package
1.15.0
Repository: https://github.com/thedataflows/go-commons.git
Documentation: pkg.go.dev

# Functions

AppendStringArgs appends viper value to existing args slice.
AppendStringArgsf appends viper value to existing args slice with optional formatted output with key and value.
AppendSplitArgs appends viper value to existing args slice after splitting them by splitPattern (default regex whitespace).
BuildEnvKey returns a fully constructed environment variable name.
CheckRequiredFlags exits with error when one ore more required flags are not set.
NewOptions sets default Options overriding with options.
PrefixKey prepends current and parent Use to specified key name.
ViperBindPersistentPFlag is a convenience wrapper over viper.BindPFlag for persistent flags.
ViperBindPFlag is a convenience wrapper over viper.BindPFlag for local flags.
ViperBindPFlagSet is a convenience wrapper over viper.BindPFlag for local FlagSet if flags is nil, the cmd.Flags() will be used.
ViperGetBool is a convenience wrapper that returns the value associated with the key as a boolean.
ViperGetDuration is a convenience wrapper that returns the value associated with the key as a duration.
ViperGetFloat64 is a convenience wrapper that returns the value associated with the key as a float64.
ViperGetInt is a convenience wrapper that returns the value associated with the key as an integer.
ViperGetSizeInBytes is a convenience wrapper that returns the size of the value associated with the given key.
ViperGetString is a convenience wrapper that returns the value associated with the key as a string.
ViperGetStringMap is a convenience wrapper that returns the value associated with the key as a map of interfaces.
ViperGetStringMapString is a convenience wrapper that returns the value associated with the key as a map of strings.
ViperGetStringMapStringSlice is a convenience wrapper that returns the value associated with the key as a map to a slice of strings.
ViperGetStringSlice is a convenience wrapper that returns the value associated with the key as a slice of strings.
ViperGetTime is a convenience wrapper that returns the value associated with the key as time.
ViperIsSet is a convenience wrapper returning true if a key is set.
ViperSet is a convenience wrapper setting an override value for specified key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author