- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for treatAsMain (0.17 sec)
-
src/cmd/go/internal/load/pkg.go
treatAsMain := map[string]bool{} for _, m := range matches { if m.IsLiteral() { for _, path := range m.Pkgs { treatAsMain[path] = true } } } var mains []*Package for _, pkg := range pkgs { if pkg.Name == "main" || (pkg.Name == "" && pkg.Error != nil) { treatAsMain[pkg.ImportPath] = true mains = append(mains, pkg)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)