Documentation
¶
Index ¶
- func AddConfigPath(in string)
- func AllKeys() []string
- func AllSettings() map[string]any
- func AutomaticEnv()
- func BindEnv(input ...string) error
- func BindFlagValue(key string, flag viper.FlagValue) error
- func BindFlagValues(flags viper.FlagValueSet) error
- func BindPFlag(key string, flag *pflag.Flag) error
- func BindPFlags(flags *pflag.FlagSet) error
- func ConfigFileUsed() string
- func Debug()
- 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 GetViper() *viper.Viper
- func InConfig(key string) bool
- func IsSet(key string) bool
- func MergeInConfig() error
- func MustBindEnv(input ...string)
- func ReadInConfig() error
- func RegisterAlias(alias, key string)
- func Set(key string, value any)
- func SetConfigFile(in string)
- func SetConfigName(in string)
- func SetConfigPermissions(perm os.FileMode)
- func SetConfigType(in string)
- func SetDefault(key string, value any)
- func SetEnvKeyReplacer(r *strings.Replacer)
- func SetEnvPrefix(in string)
- func Sub(key string) *viper.Viper
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigPath ¶
func AddConfigPath(in string)
func AllSettings ¶
func AutomaticEnv ¶
func AutomaticEnv()
func BindFlagValues ¶
func BindFlagValues(flags viper.FlagValueSet) error
func BindPFlags ¶
func ConfigFileUsed ¶
func ConfigFileUsed() string
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetSizeInBytes ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringMapStringSlice ¶
func GetStringSlice ¶
func MergeInConfig ¶
func MergeInConfig() error
func MustBindEnv ¶
func MustBindEnv(input ...string)
func ReadInConfig ¶
func ReadInConfig() error
func RegisterAlias ¶
func RegisterAlias(alias, key string)
func SetConfigFile ¶
func SetConfigFile(in string)
func SetConfigName ¶
func SetConfigName(in string)
func SetConfigPermissions ¶
func SetConfigType ¶
func SetConfigType(in string)
func SetDefault ¶
func SetEnvKeyReplacer ¶
func SetEnvPrefix ¶
func SetEnvPrefix(in string)
func UnmarshalExact ¶
func UnmarshalExact(rawVal any, opts ...viper.DecoderConfigOption) error
func UnmarshalKey ¶
func UnmarshalKey(key string, rawVal any, opts ...viper.DecoderConfigOption) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.