Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(v interface{}) []reflect.StructField
Get will fetch struct field information for any struct-type 'v', caching the results between consecutive calls. For this reason you should treat returned fields as READ-ONLY. This method is useful if you expect to be regularly reflecting and iterating a type's struct fields.
func GetByType ¶
func GetByType(t reflect.Type) []reflect.StructField
GetByType will fetch struct field information for any reflected struct-type 't', caching the results between consecutive calls. For this reason you should treat returned fields as READ-ONLY. This method is useful if you expect to be regularly reflecting and iterating a type's struct fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.