Documentation ¶
Index ¶
- func GetAsBool(value interface{}, defaultValue bool) (result bool, err error)
- func GetAsFloat(value interface{}, defaultValue float64) (result float64, err error)
- func GetAsInt(value interface{}, defaultValue int) (result int, err error)
- func GetAsMap(value interface{}) (result map[string]string, err error)
- func GetAsSlice(value interface{}) (result []string, err error)
- func GetAsString(value interface{}) (result string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAsFloat ¶
GetAsFloat parses a string to a float or returns the float if float is passed in
func GetAsSlice ¶
GetAsSlice : Parses a yaml array string to []string
func GetAsString ¶
func GetAsString(value interface{}) (result string)
GetAsString parses a int/float to a string or returns the string if string is passed in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.