Documentation ¶
Index ¶
- func Bool(config map[string]interface{}, key string) (bool, error)
- func ByteArray(config map[string]interface{}, key string) ([]byte, error)
- func Display(prefix string, Map interface{})
- func HexInt(config map[string]interface{}, key string) (int, error)
- func Int(config map[string]interface{}, key string) (int, error)
- func IntKeys(m map[int]interface{}) []int
- func InterfaceToStringKeys(m interface{}) (map[string]interface{}, error)
- func Keys(m map[string]interface{}) []string
- func Number(config map[string]interface{}, key string) (float32, error)
- func SafeInterfaceToStringKeys(m interface{}) map[string]interface{}
- func SafeStringKeys(m map[interface{}]interface{}) map[string]interface{}
- func String(config map[string]interface{}, key string) (string, error)
- func StringArray(config map[string]interface{}, key string) ([]string, error)
- func ToStringKeys(m map[interface{}]interface{}) (map[string]interface{}, error)
- func Vector(config map[string]interface{}, key string) ([]float32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Display ¶
func Display(prefix string, Map interface{})
Display displays a map[interface{}]interface{}, map[string]interface{}, []interface{} while also iterating those types within
TODO use constraints
func InterfaceToStringKeys ¶
InterfaceToStringKeys converts an interface{} to a map[string]interface{}, returns an error if key is not a string.
func SafeInterfaceToStringKeys ¶
func SafeInterfaceToStringKeys(m interface{}) map[string]interface{}
SafeInterfaceToStringKeys converts an interface to map[string]interface{}, if keys are not strings, then the key is converted into a string.
func SafeStringKeys ¶
func SafeStringKeys(m map[interface{}]interface{}) map[string]interface{}
SafeStringKeys converts a map[interface{}]interface{} to a map[string]interface{}, if key is not a string value then key is converted to a string.
func StringArray ¶
StringArray retrieves the interface{} value from the map and returns a string slice.
func ToStringKeys ¶
ToStringKeys converts a map[interface{}]interface{} to a map[string]interface{}, returns an error if key is not a string.
Types ¶
This section is empty.