Need help with go-semver?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

247 Stars 44 Forks Apache License 2.0 67 Commits 3 Opened issues


semver library in Go

Services available


Need anything else?

Contributors list

go-semver - Semantic Versioning Library


go-semver is a semantic versioning library for Go. It lets you parse and compare two semantic version strings.


vA := semver.New("1.2.3")
vB := semver.New("3.2.1")

fmt.Printf("%s < %s == %t\n", vA, vB, vA.LessThan(*vB))

Example Application

$ go run example.go 1.2.3 3.2.1
1.2.3 < 3.2.1 == true

$ go run example.go 5.2.3 3.2.1 5.2.3 < 3.2.1 == false

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.