structfields

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL