Documentation
¶
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 ¶ added in v0.9.0
func InterfaceSlice(in interface{}) (o []interface{})
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 SetFieldValues ¶
SetFieldValues will restore values the were extracted using FieldValues
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.