reflectwalk

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkFields

func WalkFields(data any, visitor FieldVisitor) error

WalkFields traverses all fields in the given value, calling visitor for each field.

Types

type FieldVisitor

type FieldVisitor func(path string, value reflect.Value) error

FieldVisitor defines a function signature for the callback. It receives the path to the field and its value.

Jump to

Keyboard shortcuts

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