Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetType ¶
GetType will extract the type at the given path from the data Go struct E.g data = { Friends: []Friend{ { Name: "John" } }, path = "Friends.0.Name" will return "John"
func GetValue ¶
GetValue will extract the value at the given path from the data Go struct E.g data = { Friends: []Friend{ { Name: "John" } }, path = "Friends.0.Name" will return "John"
func ListFields ¶
ListFields will recursively list all fields path that can be used with GetType or GetValue
func ListFieldsWithFilter ¶
func ListFieldsWithFilter(t reflect.Type, filter ListFieldFilter) []string
ListFieldsWithFilter is the same as ListFields but accept a filter method that will be call for each fields
Types ¶
Click to show internal directories.
Click to hide internal directories.