Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChaseValue ¶ added in v0.3.0
ChaseValue takes a value and returns the underlying type even if it is nested inpointers or wrapped in interface{}
func InterfaceToMap ¶
func InterfaceToMap(o interface{}) map[string]interface{}
InterfaceToMap converts the given interface to a map[string]interface{}.
func InterfaceToSliceOfInterfaces ¶
func InterfaceToSliceOfInterfaces(o interface{}) []interface{}
InterfaceToSliceOfInterfaces coerces the given interface into a slice of []interface{}. If the given interface is already []interface{} lets it pass through. If it's another slice type it converts all values to interface{}.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.