golang.org/x/tools/go/packages.Package.Imports (field)
23 uses
golang.org/x/tools/go/packages (current package)
golist.go#L329: Imports: make(map[string]*Package),
golist.go#L632: pkg.Imports = make(map[string]*Package)
golist.go#L634: pkg.Imports[path] = &Package{ID: id} // non-identity import
golist.go#L642: pkg.Imports[id] = &Package{ID: id} // identity import
packages.go#L491: Imports map[string]*Package
packages.go#L649: if len(p.Imports) > 0 {
packages.go#L650: flat.Imports = make(map[string]string, len(p.Imports))
packages.go#L651: for path, ipkg := range p.Imports {
packages.go#L679: p.Imports = make(map[string]*Package, len(flat.Imports))
packages.go#L681: p.Imports[path] = &Package{ID: id}
packages.go#L866: stubs := lpkg.Imports // the structure form has only stubs with the ID in the Imports
packages.go#L867: lpkg.Imports = make(map[string]*Package, len(stubs))
packages.go#L888: lpkg.Imports[importPath] = imp.Package
packages.go#L896: for _, ipkg := range lpkg.Imports {
packages.go#L908: if len(lpkg.Imports) == 0 {
packages.go#L934: lpkg.Imports = nil
packages.go#L1013: ld.pkgs[i].Imports = nil
packages.go#L1215: ipkg := lpkg.Imports[path]
packages.go#L1320: for _, imp := range lpkg.Imports {
packages.go#L1552: visit(lpkg.Imports)
packages.go#L1556: visit(lpkg.Imports)
visit.go#L43: for _, imp := range sorted(pkg.Imports) { // for determinism
visit.go#L91: for _, imp := range sorted(pkg.Imports) { // for determinism
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)