Documentation
¶
Overview ¶
Package typewalk provides utilities to walk Go types using reflection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
type Path struct {
// Name is the path from the root type, suitable for using as a t.Run name.
Name string
// Walk returns the reflect.Value at the end of the path, given a root
// reflect.Value.
Walk func(root reflect.Value) (leaf reflect.Value)
}
Path describes a path via a type where a private key may be found, along with a function to test whether a reflect.Value at that path is non-zero.
Click to show internal directories.
Click to hide internal directories.