Versions in this module Expand all Collapse all v1 v1.17.92 Jul 1, 2026 Changes in this version + func CompatibleTypes(expected, actual types.Type) error + func ImportPathForDir(dir string) (res string) + func NameForDir(dir string) string + func NormalizeVendor(pkg string) string + func PackagePrefixToCache(prefixPath string) func(p *Packages) + func PkgAndType(name string) (string, string) + func QualifyPackagePath(importPath string) string + func SanitizePackageName(pkg string) string + func Unalias(t types.Type) types.Type + func ValidateWithBuild(fastValidation bool, importPaths ...string) error + func WithBuildTags(tags ...string) func(p *Packages) + func WithPreloadNames(importPaths ...string) func(p *Packages) + type Option func(p *Packages) + type Packages struct + func NewPackages(opts ...Option) *Packages + func (p *Packages) CleanupUserPackages() + func (p *Packages) Count() int + func (p *Packages) Errors() PkgErrors + func (p *Packages) Evict(importPath string) + func (p *Packages) Load(importPath string) *packages.Package + func (p *Packages) LoadAll(importPaths ...string) []*packages.Package + func (p *Packages) LoadAllNames(importPaths ...string) + func (p *Packages) LoadWithTypes(importPath string) *packages.Package + func (p *Packages) ModTidy() error + func (p *Packages) NameForPackage(importPath string) string + func (p *Packages) ReloadAll(importPaths ...string) []*packages.Package + type PkgErrors []error + func (p PkgErrors) Error() string