Documentation ¶
Overview ¶
Package config provies configuraiton access functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvVar = keyvalue.NewList(&envVar{})
EnvVar implements keyvalue.Getter for environment variables. It converts the keys into the actual environment variable names by following convensions.
- Every single char is converted to the upper case.
- key `abc` is converted as `ABC` environment variable name.
- non-alphabetical chars nor non-digits are converted to '_'
- key `abc.c` is `ABC_C`
- key `abc-bar` is `ABC_BAR`
Functions ¶
func GetOr ¶
func GetOr(key string, or interface{}) interface{}
GetOr returns a value from the default config list or a default value if not found.
func GetStringOr ¶
GetStringOr is a string version of GetOr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.