internalreflect

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStructPtr

func GetStructPtr(structValue reflect.Value) reflect.Value

GetStructPtr is a helper that gets a pointer to a struct value.

Similar to getValuePtr but works with reflect.Value directly.

func GetValidValue

func GetValidValue(o any) (reflect.Value, error)

GetValidValue attempts to get a valid reflect.Value from the input object.

It handles untyped nil as an error (no type information available). For typed nil pointers, it uses a fallback approach to create zero values.

Returns an error if no valid Value can be obtained.

func GetValue

func GetValue(o any) reflect.Value

func GetValuePtr

func GetValuePtr(o any) reflect.Value

func Signature

func Signature(f any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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