Documentation ¶
Overview ¶
Package any has general purpose utility functions for working with interfaces and generic types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldValues ¶
func FieldValues(s interface{}) map[string]interface{}
FieldValues returns a map of names and values of the top-level exported fields in a struct. Anonymous fields are ignored, as well as non-exported fields.
func InterfaceSlice ¶
InterfaceSlice converts a slice of any object to a slice of interfaces of those internal objects if in is not an addressable item, it will panic
func IsNil ¶
IsNil is a safe test for nil for any kind of variable, and will not panic If i points to a nil object, IsNil will return true, as opposed to i==nil which will return false
func SetFieldValues ¶
SetFieldValues will restore values the were extracted using FieldValues
Types ¶
This section is empty.