- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ImportStack (1.98 sec)
-
src/cmd/go/internal/load/pkg.go
return e.importPath } // An ImportStack is a stack of import paths, possibly with the suffix " (test)" appended. // The import path of a test package is the import path of the corresponding // non-test package with the suffix "_test" added. type ImportStack []string func (s *ImportStack) Push(p string) { *s = append(*s, p) } func (s *ImportStack) Pop() { *s = (*s)[0 : len(*s)-1] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
allImports = append(allImports, p.XTestImports...) pre.preloadImports(ctx, opts, allImports, p.Internal.Build) var ptestErr, pxtestErr *PackageError var imports, ximports []*Package var stk ImportStack var testEmbed, xtestEmbed map[string][]string var incomplete bool stk.Push(p.ImportPath + " (test)") rawTestImports := str.StringList(p.TestImports) for i, path := range p.TestImports {
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/alldocs.go
// expanded import paths. See golang.org/s/go15vendor for more about vendoring. // // The error information, if any, is // // type PackageError struct { // ImportStack []string // shortest path from package named on command line to this one // Pos string // position of error (if present, file:line:col) // Err string // the error itself // } //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0)