golang.org/x/tools/go/packages.Package.Imports (field)
24 uses
golang.org/x/tools/go/packages (current package)
golist.go#L301: Imports: make(map[string]*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#L485: Imports map[string]*Package
packages.go#L638: if len(p.Imports) > 0 {
packages.go#L639: flat.Imports = make(map[string]string, len(p.Imports))
packages.go#L640: for path, ipkg := range p.Imports {
packages.go#L668: p.Imports = make(map[string]*Package, len(flat.Imports))
packages.go#L670: p.Imports[path] = &Package{ID: id}
packages.go#L848: stubs := lpkg.Imports // the structure form has only stubs with the ID in the Imports
packages.go#L849: lpkg.Imports = make(map[string]*Package, len(stubs))
packages.go#L870: lpkg.Imports[importPath] = imp.Package
packages.go#L878: for _, ipkg := range lpkg.Imports {
packages.go#L890: if len(lpkg.Imports) == 0 {
packages.go#L916: lpkg.Imports = nil
packages.go#L995: ld.pkgs[i].Imports = nil
packages.go#L1205: ipkg := lpkg.Imports[path]
packages.go#L1300: for _, imp := range lpkg.Imports {
packages.go#L1514: visit(lpkg.Imports)
packages.go#L1518: visit(lpkg.Imports)
visit.go#L27: paths := make([]string, 0, len(pkg.Imports))
visit.go#L28: for path := range pkg.Imports {
visit.go#L33: visit(pkg.Imports[path])
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)