Documentation ¶
Index ¶
- Variables
- func ClearData()
- func GetArrayValues(path string) []interface{}
- func GetBooleanValue(path string) bool
- func GetFloatValue(path string) float64
- func GetIntValue(path string) int
- func GetStringValue(path string) string
- func GetValueWithDefault(path string, defaultValue interface{}) interface{}
- func SetLogLevel(level string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.New()
Logger instances
Functions ¶
func GetArrayValues ¶
func GetArrayValues(path string) []interface{}
GetArrayValues search for array at given path and return empty array if no values found
func GetBooleanValue ¶
GetBooleanValue searc for boolean value at given path and return false if no value found
func GetFloatValue ¶
GetFloatValue - search for float value at given path and return 0.0 if no value found
func GetIntValue ¶
GetIntValue - search for integer value at given path and return 0 if no value found
func GetStringValue ¶
GetStringValue - search for string value at given path and return empty string if no value found
func GetValueWithDefault ¶
func GetValueWithDefault(path string, defaultValue interface{}) interface{}
GetValueWithDefault - search for string at given path and return given default value if no or emtpy value found
func SetLogLevel ¶
func SetLogLevel(level string)
SetLogLevel - allowed values "debug", "info", "warn", "error"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.