- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CleanPatterns (0.21 sec)
-
src/cmd/go/internal/search/search.go
} out = append(out, m) } return out } // CleanPatterns returns the patterns to use for the given command line. It // canonicalizes the patterns but does not evaluate any matches. For patterns // that are not local or absolute paths, it preserves text after '@' to avoid // modifying version queries. func CleanPatterns(patterns []string) []string { if len(patterns) == 0 { return []string{"."} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:05 UTC 2023 - 15.4K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
// implicit @upgrade. path@none is "downgrade away". func parseArgs(ctx context.Context, rawArgs []string) (dropToolchain bool, queries []*query) { defer base.ExitIfErrors() for _, arg := range search.CleanPatterns(rawArgs) { q, err := newQuery(arg) if err != nil { base.Error(err) continue } if q.version == "none" { switch q.pattern { case "go":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
func LoadPackages(ctx context.Context, opts PackageOpts, patterns ...string) (matches []*search.Match, loadedPackages []string) { if opts.Tags == nil { opts.Tags = imports.Tags() } patterns = search.CleanPatterns(patterns) matches = make([]*search.Match, 0, len(patterns)) allPatternIsRoot := false for _, pattern := range patterns { matches = append(matches, search.NewMatch(pattern)) if pattern == "all" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)