Documentation ¶
Index ¶
- func AllKeys() []string
- func AllSettings() map[string]interface{}
- 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 Get(key string) interface{}
- func GetBool(key string) bool
- func GetDir() string
- func GetDuration(key string) time.Duration
- func GetFile() string
- 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]interface{}
- 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 GetType() string
- func GetUint(key string) uint
- func GetUint16(key string) uint16
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func InConfig(key string) bool
- func Init() error
- func IsSet(key string) bool
- func MustBindEnv(input ...string)
- func RegisterAlias(alias string, key string)
- func Set(key string, value interface{})
- func SetDefault(key string, value interface{})
- func SetDefaultFileName(in string)
- func SetDir(dir string)
- func SetEnvKeyReplacer(r *strings.Replacer)
- func SetFile(file string)
- func SetType(in string)
- func Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error
- func UnmarshalExact(rawVal interface{}, opts ...viper.DecoderConfigOption) error
- func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
- func Viper() *viper.Viper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSettings ¶
func AllSettings() map[string]interface{}
func AutomaticEnv ¶
func AutomaticEnv()
func BindFlagValues ¶
func BindFlagValues(flags viper.FlagValueSet) error
func BindPFlags ¶
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetSizeInBytes ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringMapStringSlice ¶
func GetStringSlice ¶
func MustBindEnv ¶
func MustBindEnv(input ...string)
func RegisterAlias ¶
func SetDefault ¶
func SetDefault(key string, value interface{})
func SetDefaultFileName ¶
func SetDefaultFileName(in string)
func SetEnvKeyReplacer ¶
func Unmarshal ¶
func Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error
func UnmarshalExact ¶
func UnmarshalExact(rawVal interface{}, opts ...viper.DecoderConfigOption) error
func UnmarshalKey ¶
func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.