refl

package
v0.7.28 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.2.81

func Apply(src any, dst any)

func FindField added in v0.2.81

func FindField(s any, name string) (val reflect.Value, fld reflect.StructField, ok bool)

func FindOnStruct added in v0.2.81

func FindOnStruct(s any, fn func(reflect.Value, reflect.StructField) bool) bool

func SetFromString added in v0.2.18

func SetFromString(v reflect.Value, s string) error

func WalkOnStruct added in v0.2.18

func WalkOnStruct(s any, fn func(reflect.Value, reflect.StructField))

func WalkOnTags added in v0.2.18

func WalkOnTags(s any, tagName string, fn func(v reflect.Value, name string, flags []string))

func WalkOnTagsAny added in v0.2.18

func WalkOnTagsAny(s any, tagName string, fn func(v any, name string, flags []string))

Types

This section is empty.

Jump to

Keyboard shortcuts

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