# semver (Go)

> Parse, sort and check semantic versions against constraints in Go

Source: https://talira.ai/catalog/semver-go-xkfn0mwq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / semantic versioning](https://talira.ai/categories/libraries/semantic-versioning), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Supports: [SemVer](https://talira.ai/standards/semver.md)[^1]
- Backed by: [Masterminds](https://talira.ai/orgs/masterminds.md)

Masterminds semver is a Go package for working with Semantic Versions: it parses them (strictly, or coercing forms such as v1.2 to 1.2.0), sorts them, and checks whether a version fits a set of constraints, with ranges such as hyphen ranges, wildcards and the ~ and ^ shorthands. Version 3 focuses on constraint compatibility with range handling in tools from other languages. Import it as github.com/Masterminds/semver/v3; the 1.x line is no longer maintained.

## Links

- GitHub: https://github.com/Masterminds/semver
- Docs: https://pkg.go.dev/github.com/Masterminds/semver/v3

## Problems it solves

- check whether a version string satisfies a range like ^1.2 in Go
- sort release tags by semantic version in my Go tool
- parse sloppy version strings like v1.2 into proper semver in Go

## Features

- strict and coercing version parsing
- sorting versions
- constraint checking with hyphen ranges, wildcards, ~ and ^
- optional v prefix

## Limitations

- The 1.x line is no longer maintained; use v3[^1]

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.45, adoption 0.63, momentum 0.32, community 0.60, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- latest release v3.5.0 7 months ago
- 1.4k GitHub stars
- 30 contributors
- backed by Masterminds

## Alternatives

- [go-semver](https://talira.ai/catalog/go-semver-8zgwehdg.md): Parse, compare and bump semantic version strings in Go
- [go-version](https://talira.ai/catalog/go-version-zmf5dep4.md): A Go library for parsing and verifying versions and version constraints

## Sources

[^1]: https://github.com/Masterminds/semver/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/Masterminds/semver/blob/master/LICENSE.txt (checked 29 Nov 2026)
