- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EnsureImport (0.13 sec)
-
src/cmd/go/internal/load/pkg.go
for i, p := range patterns { if strings.Contains(p, "...") { matchers[i] = pkgpattern.MatchPattern(p) } } return pkgs, nil } // EnsureImport ensures that package p imports the named package. func EnsureImport(p *Package, pkg string) { for _, d := range p.Internal.Imports { if d.Name == pkg { return } }
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/test/test.go
// happens we'll wind up building the Q compile action // before updating its deps to include sync/atomic). if cfg.BuildCoverMode == "atomic" && p.ImportPath != "sync/atomic" { load.EnsureImport(p, "sync/atomic") } // Tag the package for static meta-data generation if no // test files (this works only with the new coverage // design). Do this here (as opposed to in builderTest) so
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)