- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for inRoots (0.14 sec)
-
src/cmd/go/internal/modload/load.go
// discarding the result of a full iteration of loading.) continue } } inRoots := map[*loadPkg]bool{} for _, path := range rootPkgs { root := ld.pkg(ctx, path, pkgIsRoot) if !inRoots[root] { ld.roots = append(ld.roots, root) inRoots[root] = true } } // ld.pkg adds imported packages to the work queue and calls applyPkgFlags,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/internal/goos/gengoos.go
if err != nil { log.Fatal(err) } const goosPrefix = `var knownOS = map[string]bool{` inGOOS := false for _, line := range strings.Split(string(data), "\n") { if strings.HasPrefix(line, goosPrefix) { inGOOS = true } else if inGOOS && strings.HasPrefix(line, "}") { break } else if inGOOS { goos := strings.Fields(line)[0] goos = strings.TrimPrefix(goos, `"`) goos = strings.TrimSuffix(goos, `":`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 15 21:31:23 UTC 2022 - 1.8K bytes - Viewed (0)