go/build.Package.Dir (field)
22 uses
go/build (current package)
build.go#L438: Dir string // directory containing package sources
build.go#L618: p.Dir = ctxt.joinPath(srcDir, path)
build.go#L628: if sub, ok := ctxt.hasSubdir(root, p.Dir); ok && !inTestdata(sub) {
build.go#L639: if sub, ok := ctxt.hasSubdir(rootsrc, p.Dir); ok && !inTestdata(sub) {
build.go#L698: p.Dir = dir
build.go#L741: p.Dir = dir
build.go#L753: p.Dir = ctxt.joinPath(ctxt.GOROOT, "src", path)
build.go#L764: p.Dir = dir
build.go#L780: p.Dir = dir
build.go#L837: if IsLocalImport(path) && !ctxt.isDir(p.Dir) {
build.go#L844: return p, fmt.Errorf("cannot find package %q in:\n\t%s", p.ImportPath, p.Dir)
build.go#L859: dirs, err := ctxt.readDir(p.Dir)
build.go#L891: if ctxt.isDir(ctxt.joinPath(p.Dir, d.Name())) {
build.go#L900: info, err := ctxt.matchFile(p.Dir, name, allTags, &p.BinaryOnly, fset)
build.go#L963: Dir: p.Dir,
build.go#L983: badGoFile(name, fmt.Errorf("found import comments %q (%s) and %q (%s) in %s", p.ImportComment, firstCommentFile, com, name, p.Dir))
build.go#L1080: return p, &NoGoError{p.Dir}
build.go#L1275: p.Dir = dir
build.go#L1758: if arg, ok = expandSrcDir(arg, di.Dir); !ok {
build.go#L1767: ctxt.makePathsAbsolute(args, di.Dir)
golang.org/x/tools/internal/gcimporter
exportdata.go#L319: if bp.Goroot && bp.Dir != "" {
exportdata.go#L320: filename, err = lookupGorootExport(bp.Dir)