type golang.org/x/tools/go/packages.Package
86 uses
golang.org/x/tools/go/packages (current package)
golist.go#L43: seenPackages map[string]*Package
golist.go#L51: seenPackages: map[string]*Package{},
golist.go#L66: func (r *responseDeduper) addPackage(p *Package) {
golist.go#L234: response.addPackage(&Package{
golist.go#L354: response.Packages = append(response.Packages, &Package{
golist.go#L359: Imports: make(map[string]*Package),
golist.go#L460: pkgs := make(map[string]*Package)
golist.go#L572: pkg := &Package{
golist.go#L650: pkg.Imports = make(map[string]*Package)
golist.go#L652: pkg.Imports[path] = &Package{ID: id} // non-identity import
golist.go#L660: pkg.Imports[id] = &Package{ID: id} // identity import
golist_overlay.go#L32: pkgOfDir := make(map[string][]*Package)
golist_overlay.go#L72: var pkg *Package // if opath belongs to both a package and its test variant, this will be the test variant
golist_overlay.go#L73: var testVariantOf *Package // if opath is a test file, this is the package it is testing
golist_overlay.go#L165: pkg = &Package{
golist_overlay.go#L169: Imports: make(map[string]*Package),
golist_overlay.go#L180: pkg.Imports[k] = &Package{ID: v.ID}
golist_overlay.go#L216: pkg.Imports[imp] = &Package{ID: id}
golist_overlay.go#L219: testVariantOf.Imports[imp] = &Package{ID: id}
golist_overlay.go#L308: func hasTestFiles(p *Package) bool {
golist_overlay.go#L409: func reclaimPackage(pkg *Package, id string, filename string, contents []byte) bool {
golist_overlay.go#L468: func maybeFixPackageName(newName string, isTestFile bool, pkgsOfDir []*Package) {
packages.go#L237: Packages []*Package
packages.go#L259: func Load(cfg *Config, patterns ...string) ([]*Package, error) {
packages.go#L288: type Package struct {
packages.go#L341: Imports map[string]*Package
packages.go#L405: return p.(*Package).forTest
packages.go#L408: return p.(*Package).depsErrors
packages.go#L483: func (p *Package) MarshalJSON() ([]byte, error) {
packages.go#L508: func (p *Package) UnmarshalJSON(b []byte) error {
packages.go#L513: *p = Package{
packages.go#L526: p.Imports = make(map[string]*Package, len(flat.Imports))
packages.go#L528: p.Imports[path] = &Package{ID: id}
packages.go#L534: func (p *Package) String() string { return p.ID }
packages.go#L538: *Package
packages.go#L632: func (ld *loader) refine(response *driverResponse) ([]*Package, error) {
packages.go#L710: lpkg.Imports = make(map[string]*Package, len(stubs))
packages.go#L781: result := make([]*Package, len(initial))
packages.go#L1278: var visit func(pkgs map[string]*Package)
packages.go#L1279: visit = func(pkgs map[string]*Package) {
visit.go#L19: func Visit(pkgs []*Package, pre func(*Package) bool, post func(*Package)) {
visit.go#L20: seen := make(map[*Package]bool)
visit.go#L21: var visit func(*Package)
visit.go#L22: visit = func(pkg *Package) {
visit.go#L50: func PrintErrors(pkgs []*Package) int {
visit.go#L52: Visit(pkgs, nil, func(pkg *Package) {
go.pact.im/x/goupdate
diff.go#L27: OldBroken []*packages.Package
diff.go#L29: NewBroken []*packages.Package
diff.go#L32: Added []*packages.Package
diff.go#L34: Removed []*packages.Package
diff.go#L54: Old *packages.Package
diff.go#L56: New *packages.Package
htmlgen.go#L172: func (g *htmlGenerator) visitModuleDiffAdded(pkgs []*packages.Package) error {
htmlgen.go#L176: func (g *htmlGenerator) visitModuleDiffRemoved(pkgs []*packages.Package) error {
htmlgen.go#L180: func (g *htmlGenerator) visitModuleDiffOldBroken(pkgs []*packages.Package) error {
htmlgen.go#L184: func (g *htmlGenerator) visitModuleDiffNewBroken(pkgs []*packages.Package) error {
htmlgen.go#L188: func (g *htmlGenerator) listPackages(header string, pkgs []*packages.Package) error {
htmlgen.go#L205: func (g *htmlGenerator) listItemPackageWithErrors(pkg *packages.Package) error {
packages.go#L11: ByModule map[string][]*packages.Package
packages.go#L26: func stateFromPacakges(pkgs []*packages.Package) *state {
packages.go#L37: func loadPackages(workspaceDir string, patterns ...string) ([]*packages.Package, error) {
packages.go#L54: func collectPackages(pkgs []*packages.Package) []*packages.Package {
packages.go#L55: var out []*packages.Package
packages.go#L56: packages.Visit(pkgs, nil, func(pkg *packages.Package) {
packages.go#L64: func packagesByModule(pkgs []*packages.Package) (map[string][]*packages.Package, map[string]packages.Module) {
packages.go#L65: byModule := make(map[string][]*packages.Package)
packages.go#L92: func splitBrokenPackages(pkgs []*packages.Package) (good, broken []*packages.Package) {
packages.go#L104: func packagesByImportPath(pkgs []*packages.Package) map[string]*packages.Package {
packages.go#L105: byImportPath := make(map[string]*packages.Package, len(pkgs))
packages.go#L114: func intersectPackageSets(pkgByImportPath, otherPkgByImportPath map[string]*packages.Package) []string {
packages.go#L127: func packagesNotInSet(pkgs []*packages.Package, pkgByImportPath map[string]*packages.Package) []*packages.Package {
packages.go#L128: var notInSet []*packages.Package
textgen.go#L181: func (g *textGenerator) visitModuleDiffRemoved(pkgs []*packages.Package) error {
textgen.go#L185: func (g *textGenerator) visitModuleDiffAdded(pkgs []*packages.Package) error {
textgen.go#L189: func (g *textGenerator) sectionModuleDiffPackages(title string, pkgs []*packages.Package) error {
textgen.go#L217: func (g *textGenerator) visitModuleDiffOldBroken(pkgs []*packages.Package) error {
textgen.go#L221: func (g *textGenerator) visitModuleDiffNewBroken(pkgs []*packages.Package) error {
textgen.go#L225: func (g *textGenerator) sectionBrokenPackages(title string, pkgs []*packages.Package) error {