Documentation ¶
Index ¶
- func ForEachField(o interface{}, excludePrivateField bool, f FieldAcceptor) error
- func ForEachFieldV2(t reflect.Type, v reflect.Value, excludePrivateField bool, f FieldAcceptor) error
- func Interfaces2Values(o []interface{}) []reflect.Value
- func IsImplement(child interface{}, parent interface{}) bool
- func TryCallMethod(b interface{}, methodName string, args ...interface{}) []reflect.Value
- func Values2Interfaces(values []reflect.Value) []interface{}
- func WalkField(o interface{}, f FieldAcceptor) error
- func WalkFieldV2(t reflect.Type, v reflect.Value, f FieldAcceptor) error
- type FieldAcceptor
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 Interfaces2Values ¶ added in v1.4.1
func IsImplement ¶
func IsImplement(child interface{}, parent interface{}) bool
func TryCallMethod ¶
func Values2Interfaces ¶ added in v1.4.1
func WalkField ¶ added in v1.4.3
func WalkField(o interface{}, f FieldAcceptor) error
func WalkFieldV2 ¶ added in v1.4.3
Types ¶
type FieldAcceptor ¶ added in v1.4.3
type FieldAcceptor func(field reflect.StructField, value reflect.Value) error
Click to show internal directories.
Click to hide internal directories.