Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConversion = errors.New("error, unable to convert value from string")
View Source
var ErrFsIsNil = errors.New("error, the FS was nil")
View Source
var ErrMissingKey = errors.New("error, could not find key")
Functions ¶
func GetKeyAsInt ¶ added in v0.7.0
GetKeyAsInt retrieves a value from the config by key and converts the value to an int. If the key could not be found or the value can not be converted to an int, a zero is returned.
func GetKeyAsIntMust ¶ added in v0.8.0
GetKeyAsIntMust retrieves a value from the config by key and converts the value to an int. If the key could not be found or the value can not be converted to an int, the function will panic.
func GetKeyMust ¶ added in v0.8.0
GetKeyMust retrieves a value from the config by key. It panics if the key does not exist.
Types ¶
Click to show internal directories.
Click to hide internal directories.