Documentation ¶
Overview ¶
*
- Used under the MIT License.
- Semver courtesy Benedikt Lang (https://github.com/blang)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SPEC_VERSION = Version{
Major: 2,
Minor: 0,
Patch: 0,
}
Latest fully supported spec version
Functions ¶
func NewBuildVersion ¶
Creates a new valid build version
Types ¶
type PRVersion ¶
PreRelease Version
func NewPRVersion ¶
Creates a new valid prerelease version
type Version ¶
type Version struct { Major uint64 Minor uint64 Patch uint64 Pre []*PRVersion Build []string //No Precendence }
func (*Version) Compare ¶
Compares Versions v to o: -1 == v is less than o 0 == v is equal to o 1 == v is greater than o
Click to show internal directories.
Click to hide internal directories.