reflectkit

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetField

func GetField(t tester.T, s any, name string) reflect.StructField

GetField returns the reflect.StructField for a named field in struct s. The struct s must be a struct pointer. On error, the test is marked as failed and an error message is logged to the test log.

func GetValue

func GetValue(t tester.T, s any, name string) reflect.Value

GetValue returns the reflect.Value for a named field in struct s. The struct s must be a struct pointer. On error, the test is marked as failed and an error message is logged to the test log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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