Documentation ¶
Index ¶
- func AllNames() []string
- func AllNonDefaultNames() []string
- func ConfBool(name string, def ...bool) bool
- func ConfInt(name string, def int) int
- func ConfKeyExists(name string) bool
- func ConfKeyExistsIn(v *viper.Viper, name string) bool
- func ConfString(name string, def string) string
- func ConfStringFrom(v *viper.Viper, vd *viper.Viper, name string, def string) string
- func ConfStringSlice(name string, def []string) []string
- func ConfStringSliceFrom(v *viper.Viper, vd *viper.Viper, name string, def []string) []string
- func ConfStrings(name string) []string
- func CopyToAndUse(name string) error
- func Current() *viper.Viper
- func CurrentName() string
- func Default() *viper.Viper
- func Delete(name string) error
- func DeleteConf(name string)
- func ReadDefaultConfig(dir string) error
- func SetConf(name string, val interface{})
- func SetConfIn(v *viper.Viper, name string, val interface{})
- func Use(name string) error
- func WriteConfigAs(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllNonDefaultNames ¶
func AllNonDefaultNames() []string
func ConfKeyExists ¶
func ConfString ¶
func ConfStringFrom ¶
func ConfStringSlice ¶
func ConfStringSliceFrom ¶
func ConfStrings ¶
func CopyToAndUse ¶
func CurrentName ¶
func CurrentName() string
func DeleteConf ¶
func DeleteConf(name string)
func WriteConfigAs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.