- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MatchPrefixPatterns (0.47 sec)
-
src/cmd/vendor/golang.org/x/mod/module/module.go
continue } if 'A' <= r && r <= 'Z' { return "", false } buf = append(buf, byte(r)) } if bang { return "", false } return string(buf), true } // MatchPrefixPatterns reports whether any path prefix of target matches one of // the glob patterns (as defined by [path.Match]) in the comma-separated globs // list. This implements the algorithm used when matching a module path to the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 20:17:07 UTC 2024 - 26.9K bytes - Viewed (0) -
src/cmd/go/internal/vcs/vcs.go
case "private": match = private case "public": match = !private default: // Note: rule.pattern is known to be comma-free, // so MatchPrefixPatterns is only matching a single pattern for us. match = module.MatchPrefixPatterns(rule.pattern, path) } if !match { continue } for _, allow := range rule.allowed { if allow == vcs || allow == "all" { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:30:18 UTC 2024 - 46.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/client.go
// usually from the environment variable). var ErrGONOSUMDB = errors.New("skipped (listed in GONOSUMDB)") func (c *Client) skip(target string) bool { return module.MatchPrefixPatterns(c.nosumdb, target) } // Lookup returns the go.sum lines for the given module path and version. // The version may end in a /go.mod suffix, in which case Lookup returns
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:50:49 UTC 2024 - 19.1K bytes - Viewed (0)