Documentation ¶
Index ¶
- func MapVisitor[Type any](v any, handler VisitorFunc[Type])
- func PropertyGet[Type any](val any, property string) (value Type, found bool)
- func PropertyGetDefault[Type any](val any, property string, def Type) (Type, bool)
- func PropertyGetReflect(valOf reflect.Value, property string) reflect.Value
- func SliceVisitor[Type any](v any, handler VisitorFunc[Type])
- func StructVisitor[Type any](v any, handler VisitorFunc[Type])
- func VisitReflectValue[Type any](value reflect.Value, handler VisitorFunc[Type])
- type Context
- type VisitorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapVisitor ¶
func MapVisitor[Type any](v any, handler VisitorFunc[Type])
func PropertyGetDefault ¶
func PropertyGetReflect ¶
func SliceVisitor ¶
func SliceVisitor[Type any](v any, handler VisitorFunc[Type])
func StructVisitor ¶
func StructVisitor[Type any](v any, handler VisitorFunc[Type])
func VisitReflectValue ¶
func VisitReflectValue[Type any](value reflect.Value, handler VisitorFunc[Type])
Types ¶
type Context ¶
type Context struct { Property string FieldData reflect.StructField }
type VisitorFunc ¶
type VisitorFunc[Type any] func(value Type, field reflect.StructField) (ret Type)
Click to show internal directories.
Click to hide internal directories.