Versions in this module Expand all Collapse all v0 v0.0.1 Oct 22, 2022 Changes in this version + func FindClosestType(pkg *packages.Package, opts ...OptsFunc) (*ast.File, *types.TypeName, error) + func LoadPackage(opts ...OptsFunc) (*packages.Package, error) + func LoadPackageAndFindClosestType(opts ...OptsFunc) (*packages.Package, *ast.File, *types.TypeName, error) + type Opts struct + type OptsFunc func(opts *Opts) + func FileName(name string) OptsFunc + func Line(line int) OptsFunc + func PackageName(name string) OptsFunc