Documentation
¶
Overview ¶
Package reflector provides type reflection utilities with caching. It extracts and caches type metadata for efficient repeated lookups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeInfo ¶
type TypeInfo struct {
Name string // Fully qualified name: "pkg/path.TypeName"
Type reflect.Type // The underlying reflect.Type
}
TypeInfo holds metadata about a reflected type.
func TypeInfoFor ¶
TypeInfoFor returns TypeInfo for type parameter T. The result is cached for subsequent lookups.
func TypeInfoForType ¶
TypeInfoForType returns TypeInfo for the given reflect.Type. For pointer types, returns info about the element type. Results are cached; thread-safe for concurrent use.
func TypeInfoOf ¶
TypeInfoOf returns TypeInfo for the dynamic type of x. The result is cached for subsequent lookups.
Click to show internal directories.
Click to hide internal directories.