reflectutils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStructField

func FindStructField(sType reflect.Type, matcher func(t reflect.StructField) bool) (ret reflect.StructField, found bool)

FindStructField recursively find field that matching the given matcher, including embedded fields

func IsExportedField

func IsExportedField(f reflect.StructField) bool

func ListStructField

func ListStructField(sType reflect.Type, matcher func(t reflect.StructField) bool) (ret []reflect.StructField)

ListStructField recursively find all fields that matching the given matcher, including embedded fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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