Semver parsing and validation library for Go
- Free software: MIT License
Semver is a small, simple semver parsing and validation library for Go
go get github.com/FollowTheProcess/semver@latest
version := semver.New(1, 2, 3, "rc.1", "build.123")
version, err := semver.Parse("v1.6.12")
if err != nil {
log.Fatal(err)
}
ok := semver.IsValid("1.19.0")
This package was created with copier and the FollowTheProcess/go_copier project template.