Documentation
¶
Index ¶
- func Get(key string) interface{}
- 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 GetString(key string) string
- func GetStringSlice(key string) []string
- func GetUint(key string) uint
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func IGet(key string) interface{}
- func IGetBool(key string) bool
- func IGetDuration(key string) time.Duration
- func IGetFloat64(key string) float64
- func IGetInt(key string) int
- func IGetInt32(key string) int32
- func IGetInt64(key string) int64
- func IGetIntSlice(key string) []int
- func IGetString(key string) string
- func IGetStringSlice(key string) []string
- func IGetUint(key string) uint
- func IGetUint32(key string) uint32
- func IGetUint64(key string) uint64
- func Load(name string) error
- func ReadInConfig() error
- func Reset()
- func SetFS(fs embed.FS)
- func V() *viper.Viper
- type Piper
- func (p *Piper) Get(key string) interface{}
- func (p *Piper) GetBool(key string) bool
- func (p *Piper) GetDuration(key string) time.Duration
- func (p *Piper) GetFloat64(key string) float64
- func (p *Piper) GetInt(key string) int
- func (p *Piper) GetInt32(key string) int32
- func (p *Piper) GetInt64(key string) int64
- func (p *Piper) GetIntSlice(key string) []int
- func (p *Piper) GetString(key string) string
- func (p *Piper) GetStringSlice(key string) []string
- func (p *Piper) GetUint(key string) uint
- func (p *Piper) GetUint32(key string) uint32
- func (p *Piper) GetUint64(key string) uint64
- func (p *Piper) IGet(key string) interface{}
- func (p *Piper) IGetBool(key string) bool
- func (p *Piper) IGetDuration(key string) time.Duration
- func (p *Piper) IGetFloat64(key string) float64
- func (p *Piper) IGetInt(key string) int
- func (p *Piper) IGetInt32(key string) int32
- func (p *Piper) IGetInt64(key string) int64
- func (p *Piper) IGetIntSlice(key string) []int
- func (p *Piper) IGetString(key string) string
- func (p *Piper) IGetStringSlice(key string) []string
- func (p *Piper) IGetUint(key string) uint
- func (p *Piper) IGetUint32(key string) uint32
- func (p *Piper) IGetUint64(key string) uint64
- func (p *Piper) Load(name string) error
- func (p *Piper) MergeInConfig() error
- func (p *Piper) ReadInConfig() error
- func (p *Piper) SetFS(fs embed.FS)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetStringSlice ¶
func IGetDuration ¶
func IGetFloat64 ¶
func IGetIntSlice ¶
func IGetString ¶
func IGetStringSlice ¶
func IGetUint32 ¶
func IGetUint64 ¶
func ReadInConfig ¶
func ReadInConfig() error
Types ¶
type Piper ¶
func (*Piper) GetFloat64 ¶
func (*Piper) GetIntSlice ¶
func (*Piper) GetStringSlice ¶
func (*Piper) IGetFloat64 ¶
func (*Piper) IGetIntSlice ¶
func (*Piper) IGetString ¶
func (*Piper) IGetStringSlice ¶
func (*Piper) IGetUint32 ¶
func (*Piper) IGetUint64 ¶
func (*Piper) MergeInConfig ¶
func (*Piper) ReadInConfig ¶
Click to show internal directories.
Click to hide internal directories.