settings

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigPath

func AddConfigPath(in string)

func AllSettings

func AllSettings() map[string]interface{}

func GetBool

func GetBool(key string) bool

func GetBoolWithDefault

func GetBoolWithDefault(key string, val bool) bool

func GetInt

func GetInt(key string) int

func GetIntSlice

func GetIntSlice(key string) []int

func GetIntWithDefault

func GetIntWithDefault(key string, val int) int

func GetString

func GetString(key string) string

func GetStringMapString

func GetStringMapString(key string) map[string]string

func GetStringSlice

func GetStringSlice(key string) []string

func GetStringWithDefault

func GetStringWithDefault(key string, val string) string

func IsSet

func IsSet(key string) bool

func ReadInConfig

func ReadInConfig() error

func Reset

func Reset()

func Set

func Set(key string, value interface{})

func SetConfigName

func SetConfigName(in string)

Types

type Setting

type Setting struct {
	*viper.Viper
}

func Group

func Group(key string) *Setting

Jump to

Keyboard shortcuts

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