You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/vendor/github.com/coreos/go-semver
Darren Shepherd fa08d6076c
Update vendor
6 years ago
..
semver Update vendor 6 years ago
.travis.yml Update vendor 6 years ago
DCO Update vendor 6 years ago
LICENSE Update vendor 6 years ago
NOTICE Update vendor 6 years ago
README.md Update vendor 6 years ago
code-of-conduct.md Update vendor 6 years ago

README.md

go-semver - Semantic Versioning Library

Build Status GoDoc

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

Usage

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