Documentation
¶
Overview ¶
Package loader provides Go package loading and struct type resolution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StructField ¶
type StructField struct {
Name string // short field name used for matching (e.g. "Street")
Accessor string // full accessor path from root (e.g. "Address.Street")
Type types.Type
Tag reflect.StructTag
Exported bool
Embedded bool
}
StructField represents a single field extracted from a Go struct.
type StructInfo ¶
type StructInfo struct {
Name string
PkgPath string
Fields []StructField // includes promoted fields from embedded structs
}
StructInfo holds the resolved struct type information.
func LookupStruct ¶
func LookupStruct(pkg *packages.Package, name string) (*StructInfo, error)
LookupStruct finds a named struct type in the package.
Click to show internal directories.
Click to hide internal directories.