Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.64 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.64 KB

Semver

License Go Reference Go Report Card GitHub CI codecov

Semver parsing and validation library for Go

  • Free software: MIT License

Project Description

Semver is a small, simple semver parsing and validation library for Go

Installation

go get github.com/FollowTheProcess/semver@latest

Quickstart

Create a New Version

version := semver.New(1, 2, 3, "rc.1", "build.123")

Parse a Version from text

version, err := semver.Parse("v1.6.12")
if err != nil {
    log.Fatal(err)
}

Check a version string

ok := semver.IsValid("1.19.0")

Credits

This package was created with copier and the FollowTheProcess/go_copier project template.