Documentation
¶
Overview ¶
Package config lets you retrieve config variables
Index ¶
- func GetBool(key string) bool
- func GetDefaultBool(key string, defaultVal bool) bool
- func GetDefaultDurationS(key string, defaultVal int) time.Duration
- func GetDefaultInt(key string, defaultVal int) int
- func GetDefaultString(key, defaultValue string) string
- func GetDefaultUint16(key string, defaultVal uint16) uint16
- func GetDurationS(key string) time.Duration
- func GetInt(key string) int
- func GetString(key string) string
- func GetUint16(key string) uint16
- func Init() error
- func IsDev() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultBool ¶
func GetDefaultDurationS ¶ added in v0.2.0
GetDefaultDurationS returns the value of the in time.Duration or a default value The default value should be the amount of seconds and gets transformed to a time.Duration
func GetDefaultInt ¶
func GetDefaultString ¶
func GetDefaultUint16 ¶
func GetDurationS ¶ added in v0.2.0
GetDurationS returns the value of the key as a duration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.