package
Version:
v0.0.19
Opens a new window with list of versions in this module.
Published: Sep 12, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package semver implements basic semantic versions using the vX.Y.Z format.
It supports parsing and sorting of versions.
Sort sorts a slice of versions
MustParse is like Parse but panics if the version cannot be parsed.
Parse parses version string in vX.Y.Z format and returns a validated Version or error.
String returns display representation of the version in the vX.Y.Z format.
Versions represents multiple versions.
Len returns length of version collection
Less checks if version at index i is less than version at index j
Swap swaps two versions inside the collection by its indices
Source Files
¶
Click to show internal directories.
Click to hide internal directories.