# Packages
No description provided by the author
# README
Semver
Upversion
Usage
This package exposes a function Upversion
for identifying the next semantic version
based on a current version, given an increment (major, minor, patch).
Supports the v
prefix; if your version begins with a v
, then the resulting
version will also begin with a v
.
version, err := semver.Upversion("minor", "v3.2.6")
if err != nil {
return err
}
fmt.Println(version) // v3.3.0
Binary
Assuming you have $GOPATH/bin
on your path, you can install the binary via:
$ go get -u github.com/kinbiko/semver/cmd/upversion
Then you can get the next version for the current repository with:
$ upversion minor # Alternatively: `upversion major` or `upversion patch`
v0.2.0
Docs
You can find the GoDocs for this package here.
Contributing
Contributions are welcome. Please discuss feature requests in an issue before opening a PR.