- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for importpath (0.23 sec)
-
src/cmd/go/internal/modload/import.go
} return message + hint } func (e *ImportMissingSumError) ImportPath() string { return e.importPath } type invalidImportError struct { importPath string err error } func (e *invalidImportError) ImportPath() string { return e.importPath } func (e *invalidImportError) Error() string { return e.err.Error() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
pxtestErr = err } if p1.Incomplete { pxtestIncomplete = true } if p1.ImportPath == p.ImportPath { pxtestNeedsPtest = true } else { ximports = append(ximports, p1) } p.XTestImports[i] = p1.ImportPath } p.XTestEmbedFiles, xtestEmbed, err = resolveEmbed(p.Dir, p.XTestEmbedPatterns) if err != nil && pxtestErr == nil { pxtestErr = &PackageError{ ImportStack: stk.Copy(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/cmd/go/internal/vcs/vcs.go
} return rr, err } var errUnknownSite = errors.New("dynamic lookup required to find mapping") // repoRootFromVCSPaths attempts to map importPath to a repoRoot // using the mappings defined in vcsPaths. func repoRootFromVCSPaths(importPath string, security web.SecurityMode, vcsPaths []*vcsPath) (*RepoRoot, error) { if str.HasPathPrefix(importPath, "example.net") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:30:18 UTC 2024 - 46.2K bytes - Viewed (0) -
src/go/doc/doc.go
// then lookupPackage returns that import. // If multiple packages are imported as name, importPath returns "", false. // Otherwise, if name is the name of p itself, importPath returns "", true, // to signal a reference to p. // Otherwise, importPath returns "", false. func (p *Package) lookupPackage(name string) (importPath string, ok bool) { if path, ok := p.importByName[name]; ok { if path == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/doc/pkg.go
for _, root := range codeRoots() { if pkg.build.Dir == root.dir { importPath = root.importPath break } if strings.HasPrefix(pkg.build.Dir, root.dir+string(filepath.Separator)) { suffix := filepath.ToSlash(pkg.build.Dir[len(root.dir)+1:]) if root.importPath == "" { importPath = suffix } else { importPath = root.importPath + "/" + suffix } break } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go
} f.Decls = append(f.Decls[:i], f.Decls[i+1:]...) i-- } return true } func isThirdParty(importPath string) bool { // Third party package import path usually contains "." (".com", ".org", ...) // This logic is taken from golang.org/x/tools/imports package. return strings.Contains(importPath, ".") } // DeleteImport deletes the import path from the file f, if present.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 21:56:21 UTC 2022 - 13.4K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
} rewrite := "" rewriteDir := a.Package.Dir if cfg.BuildTrimpath { importPath := a.Package.Internal.OrigImportPath if m := a.Package.Module; m != nil && m.Version != "" { rewriteDir = m.Path + "@" + m.Version + strings.TrimPrefix(importPath, m.Path) } else { rewriteDir = importPath } rewrite += a.Package.Dir + "=>" + rewriteDir + ";" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
return cmdErr } // Fetch defaults from the package. var p *load.Package a := sh.action if a != nil { p = a.Package } var importPath string if p != nil { importPath = p.ImportPath if desc == "" { desc = p.Desc() } if dir == "" { dir = p.Dir } } out := string(cmdOut) if !strings.HasSuffix(out, "\n") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
misc/go_android_exec/main.go
} parts := strings.SplitN(string(bytes.TrimSpace(out)), ":", 4) if len(parts) < 2 { return errorf("%v: missing ':' in output: %q", cmd, out) } importPath = parts[0] if importPath == "" || importPath == "." { return errorf("current directory does not have a Go import path") } isStd, err = strconv.ParseBool(parts[1]) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
src/go/build/build_test.go
p, err := Import("", testenv.GOROOT(t), FindOnly) if err == nil { t.Fatal(`Import("") returned nil error.`) } if p == nil { t.Fatal(`Import("") returned nil package.`) } if p.ImportPath != "" { t.Fatalf("ImportPath=%q, want %q.", p.ImportPath, "") } } func TestEmptyFolderImport(t *testing.T) { _, err := Import(".", "testdata/empty", 0) if _, ok := err.(*NoGoError); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0)