Semver for Go
Compare software release versions and test allowed version ranges.
Masterminds · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/Masterminds/semver/v3 at v3.5.0. Allow releases from two to under three, then check two fictional versions.
What we tested
v3.5.0. Allow releases from two to under three, then check two fictional versions. Accepted the matching release and rejected the upper-bound release.