- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MatchPathMajor (0.12 sec)
-
src/cmd/vendor/golang.org/x/mod/module/module.go
return path, "", false } return prefix, pathMajor, true } // MatchPathMajor reports whether the semantic version v // matches the path major version pathMajor. // // MatchPathMajor returns true if and only if [CheckPathMajor] returns nil. func MatchPathMajor(v, pathMajor string) bool { return CheckPathMajor(v, pathMajor) == nil }
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/modfetch/coderepo.go
if v == strings.TrimSuffix(statVers, "+incompatible") { v = statVers } base := strings.TrimSuffix(v, "+incompatible") var errIncompatible error if !module.MatchPathMajor(base, r.pathMajor) { if canUseIncompatible(base) { v = base + "+incompatible" } else { if r.pathMajor != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 38.4K bytes - Viewed (0)