Documentation ¶
Overview ¶
COPIED FROM http://code.google.com/p/go-semver/
The version package implements semantic versions as described at http://semver.org/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { Major int // The major version number. Minor int // The minor version number. Patch int // The patch version number. Prerelease []string // The pre-release version (dot-separated elements) Build []string // The build version (dot-separated elements) }
Version represents a parsed version. See http://semver.org/ for detailed description of the various components.
func Parse ¶
Parse parses the version, which is of one of the following forms:
1.2.3 1.2.3-prerelease 1.2.3+build 1.2.3-prerelease+build
Click to show internal directories.
Click to hide internal directories.