xcfg

package
v1.27.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllKeys

func AllKeys() []string

func AllSettings

func AllSettings() map[string]interface{}

func AutomaticEnv

func AutomaticEnv()

func BindEnv

func BindEnv(input ...string) error

func BindFlagValue

func BindFlagValue(key string, flag viper.FlagValue) error

func BindFlagValues

func BindFlagValues(flags viper.FlagValueSet) error

func BindPFlag

func BindPFlag(key string, flag *pflag.Flag) error

func BindPFlags

func BindPFlags(flags *pflag.FlagSet) error

func Get

func Get(key string) interface{}

func GetBool

func GetBool(key string) bool

func GetDir

func GetDir() string

func GetDuration

func GetDuration(key string) time.Duration

func GetFile

func GetFile() string

func GetFloat64

func GetFloat64(key string) float64

func GetInt

func GetInt(key string) int

func GetInt32

func GetInt32(key string) int32

func GetInt64

func GetInt64(key string) int64

func GetIntSlice

func GetIntSlice(key string) []int

func GetSizeInBytes

func GetSizeInBytes(key string) uint

func GetString

func GetString(key string) string

func GetStringMap

func GetStringMap(key string) map[string]interface{}

func GetStringMapString

func GetStringMapString(key string) map[string]string

func GetStringMapStringSlice

func GetStringMapStringSlice(key string) map[string][]string

func GetStringSlice

func GetStringSlice(key string) []string

func GetTime

func GetTime(key string) time.Time

func GetType

func GetType() string

func GetUint

func GetUint(key string) uint

func GetUint16

func GetUint16(key string) uint16

func GetUint32

func GetUint32(key string) uint32

func GetUint64

func GetUint64(key string) uint64

func InConfig

func InConfig(key string) bool

func Init

func Init() error

func IsSet

func IsSet(key string) bool

func MustBindEnv

func MustBindEnv(input ...string)

func RegisterAlias

func RegisterAlias(alias string, key string)

func Set

func Set(key string, value interface{})

func SetDefault

func SetDefault(key string, value interface{})

func SetDefaultFileName

func SetDefaultFileName(in string)

func SetDir

func SetDir(dir string)

func SetEnvKeyReplacer

func SetEnvKeyReplacer(r *strings.Replacer)

func SetFile

func SetFile(file string)

func SetType

func SetType(in string)

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

func Viper

func Viper() *viper.Viper

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL