reflectx

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachField added in v1.4.3

func ForEachField(o interface{}, excludePrivateField bool, f FieldAcceptor) error

func ForEachFieldV2 added in v1.4.3

func ForEachFieldV2(t reflect.Type, v reflect.Value, excludePrivateField bool, f FieldAcceptor) error

func Interfaces2Values added in v1.4.1

func Interfaces2Values(o []interface{}) []reflect.Value

func IsImplement

func IsImplement(child interface{}, parent interface{}) bool

func TryCallMethod

func TryCallMethod(b interface{}, methodName string, args ...interface{}) []reflect.Value

func Values2Interfaces added in v1.4.1

func Values2Interfaces(values []reflect.Value) []interface{}

func WalkField added in v1.4.3

func WalkField(o interface{}, f FieldAcceptor) error

func WalkFieldV2 added in v1.4.3

func WalkFieldV2(t reflect.Type, v reflect.Value, f FieldAcceptor) error

Types

type FieldAcceptor added in v1.4.3

type FieldAcceptor func(field reflect.StructField, value reflect.Value) error

Jump to

Keyboard shortcuts

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