Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateField ¶ added in v0.17.2
PrivateField reads an unexported struct field by name via reflection.
It is intended for tests that need to verify the effect of functional options (e.g. gollem-dev/tools `WithXxx` helpers) on an external ToolSet whose fields are unexported. structPtr must be a non-nil pointer to a struct. The returned value is the field value as `any`; callers assert the concrete type with gt.
Types ¶
Click to show internal directories.
Click to hide internal directories.