tfreflect

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	StructField reflect.StructField
	Value       reflect.Value
}

func ListAllFields

func ListAllFields(v reflect.Value) []Field

ListAllFields takes in a reflect.Value of a struct, returns all of the fields for both struct field and the value. This function also extracts and flattens the anonymous fields nested inside.

Jump to

Keyboard shortcuts

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