config

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeStampFormat = "2006-01-02 15:04:05"
)

Variables

View Source
var DefaultInstance = &config{viper.New()}

Functions

func AddConfigPath

func AddConfigPath(path string)

func AutomaticEnv

func AutomaticEnv()

func GetBool

func GetBool(key string) bool

func GetDuration

func GetDuration(key string) time.Duration

func GetFloat64

func GetFloat64(key string) float64

func GetInt

func GetInt(key string) int

func GetIntSlice

func GetIntSlice(key string) []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 GetUint

func GetUint(key string) uint

func GetUint64

func GetUint64(key string) uint64

func IsSet

func IsSet(key string) bool

func ReadInConfig

func ReadInConfig() error

func Set

func Set(key string, value interface{})

func SetConfigName

func SetConfigName(name string)

func WatchConfig

func WatchConfig()

Types

This section is empty.

Jump to

Keyboard shortcuts

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