hashicorp/go-version
A Go (golang) library for parsing and verifying versions and version constraints. observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 53
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 122
- age_days: 4543
- days_rel: 156
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
1770 stars · 164 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library for parsing, comparing, and verifying semantic versions and version constraints. It supports prerelease versions, sorting collections of versions, incrementing versions, and checking versions against constraint expressions.
Use cases
- parse semver version strings in go
- check if a version satisfies constraints like >= 1.0, < 1.4
- sort a list of versions correctly including prereleases
- compare two versions to see which is newer
- parse versions with custom prefixes like deployment-v1.2.3
- increment a version number programmatically
When to choose
- you need SemVer parsing and constraint checking in a Go project
- you need correct sorting of versions including beta/prerelease tags
- you want a widely adopted, stable library (6,000+ importers)
When to avoid
- you need non-SemVer versioning schemes
- you're not working in Go
Facets
library · maturity stable
parser developer-tools developer-tools programming-languages go cross-platform semver version-constraints version-comparison version-sorting hashicorp algorithms
4 sources
- readme: https://github.com/hashicorp/go-version · fetched 2026-08-28 · 78f059b72928
- homepage: https://pkg.go.dev/github.com/hashicorp/go-version · fetched 2026-08-29 · ac9768580c0b
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hashicorp/go-version | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="hashicorp/go-version")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem