type golang.org/x/tools/go/packages.Package
73 uses
golang.org/x/tools/go/packages (current package)
external.go#L73: Packages []*Package
golist.go#L40: seenPackages map[string]*Package
golist.go#L48: seenPackages: map[string]*Package{},
golist.go#L63: func (r *responseDeduper) addPackage(p *Package) {
golist.go#L296: response.Packages = append(response.Packages, &Package{
golist.go#L301: Imports: make(map[string]*Package),
golist.go#L403: pkgs := make(map[string]*Package)
golist.go#L515: pkg := &Package{
golist.go#L600: pkg.Imports = make(map[string]*Package)
golist.go#L602: pkg.Imports[path] = &Package{ID: id} // non-identity import
golist.go#L610: pkg.Imports[id] = &Package{ID: id} // identity import
packages.go#L261: func Load(cfg *Config, patterns ...string) ([]*Package, error) {
packages.go#L419: type Package struct {
packages.go#L485: Imports map[string]*Package
packages.go#L562: return p.(*Package).depsErrors
packages.go#L624: func (p *Package) MarshalJSON() ([]byte, error) {
packages.go#L649: func (p *Package) UnmarshalJSON(b []byte) error {
packages.go#L654: *p = Package{
packages.go#L668: p.Imports = make(map[string]*Package, len(flat.Imports))
packages.go#L670: p.Imports[path] = &Package{ID: id}
packages.go#L676: func (p *Package) String() string { return p.ID }
packages.go#L680: *Package
packages.go#L773: func (ld *loader) refine(response *DriverResponse) ([]*Package, error) {
packages.go#L849: lpkg.Imports = make(map[string]*Package, len(stubs))
packages.go#L969: result := make([]*Package, len(initial))
packages.go#L1507: var visit func(pkgs map[string]*Package)
packages.go#L1508: 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#L53: 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#L182: func (g *textGenerator) visitModuleDiffRemoved(pkgs []*packages.Package) error {
textgen.go#L186: func (g *textGenerator) visitModuleDiffAdded(pkgs []*packages.Package) error {
textgen.go#L190: func (g *textGenerator) sectionModuleDiffPackages(title string, pkgs []*packages.Package) error {
textgen.go#L218: func (g *textGenerator) visitModuleDiffOldBroken(pkgs []*packages.Package) error {
textgen.go#L222: func (g *textGenerator) visitModuleDiffNewBroken(pkgs []*packages.Package) error {
textgen.go#L226: func (g *textGenerator) sectionBrokenPackages(title string, pkgs []*packages.Package) error {