Documentation
¶
Overview ¶
Package config provides all configuration related functions
Index ¶
- func GetBool(key string) bool
- func GetDefaultBool(key string, defaultVal bool) bool
- func GetDefaultDuration(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 GetDuration(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 ¶
GetDefaultBool returns the value of the key in bool or a default value
func GetDefaultDuration ¶
GetDefaultDuration 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 ¶
GetDefaultInt returns the value of the key in int or a default value
func GetDefaultString ¶
GetDefaultString returns the value of the key in string or a default value
func GetDefaultUint16 ¶
GetDefaultUint16 returns the value of the key in uint16 or a default value
func GetDuration ¶
GetDuration returns the value of the key as a duration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.