Documentation ¶
Index ¶
- type Viper
- func (v Viper) Get(key string) any
- func (v Viper) GetBool(key string) bool
- func (v Viper) GetFloat(key string) float64
- func (v Viper) GetInt(key string) int
- func (v Viper) GetKeys() []string
- func (v Viper) GetString(key string) string
- func (v Viper) GetStrings(key string) []string
- func (v Viper) LoadSettings() error
- func (v Viper) SaveSettings() error
- func (v Viper) Set(key string, value any)
- func (v Viper) SetDefault(key string, value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Viper ¶
type Viper struct {
SettingsName string
}
Viper is a wrapper around viper that implements the Settings interface.
func (Viper) GetStrings ¶
func (Viper) LoadSettings ¶
func (Viper) SaveSettings ¶
func (Viper) SetDefault ¶
Click to show internal directories.
Click to hide internal directories.