talira

Compare

go-semvergo-versionsemver (Go)
What it isParse, compare and bump semantic version strings in GoA Go library for parsing and verifying versions and version constraintsParse, sort and check semantic versions against constraints in Go
KindOpen sourceOpen sourceOpen source
Trust0.310.480.42
Stars36717801449
Last commit2026-02-062026-10-162026-08-14
LicenceApache-2.0MPL-2.0MIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyCoreOSHashiCorp
acquired by IBM (2025)
Masterminds
Features
  • Parses semantic version strings, with pre-release and metadata parts
  • Compare, Equal and LessThan, with pre-release precedence
  • Sorts lists of versions
  • BumpMajor, BumpMinor and BumpPatch
  • Works as a flag.Value and marshals to JSON and YAML
  • parse versions and compare them (less than, greater than, equal)
  • version constraints such as '>= 1.0, < 1.4'
  • sort a collection of versions, prereleases included
  • strip a custom prefix before parsing
  • increment versions
  • 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