func golang.org/x/mod/semver.Major
8 uses
golang.org/x/mod/semver (current package)
semver.go#L64: func Major(v string) string {
golang.org/x/mod/module
module.go#L555: m := semver.Major(v)
module.go#L569: Err: fmt.Errorf("should be %s, not %s", pathMajor, semver.Major(v)),
module.go#L590: if m != semver.Major(m) {
golang.org/x/pkgsite/internal/frontend
main.go#L195: isStableVersion := semver.Major(um.Version) != "v0" && versionType == version.TypeRelease
versions.go#L157: major := semver.Major(mi.Version)
versions.go#L172: major = semver.Major(mi.Version)
golang.org/x/pkgsite/internal/proxydatasource
datasource.go#L234: startVersion, err := strconv.Atoi(strings.TrimPrefix(semver.Major(info.Version), "v"))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |