Registry / utility / blang-semver

blang-semver

JSON →
library3.5.1+incompatiblegogounverified

Semantic versioning library for Go.

go get github.com/blang/semver
INSTALL
IMPORT
SIG · BLANG-SEMVER
B
blang-semver
utilitygov3.5.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

semver
github.com/blang/semver/v4

Parse and inspect a semantic version string.

package main import ( "fmt" "github.com/blang/semver/v4" ) func main() { v, _ := semver.Parse("1.2.3-alpha.1") fmt.Println(v.Major) }
Debug
Known issues
breakingThe v3 tag is incompatible with Go modules; use v4 or later.
fix
Import github.com/blang/semver/v4 instead of v3.
affects: 3.x
Upgrade
Version history
3.5.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
blang-semver — go get blang-semver · libregistry