Documentation ¶
Overview ¶
Package semver implements semantic versioning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version is the major/minor/patch of the application.
func (Version) Less ¶
Less is a helper function to compare versions per https://semver.org/#spec-item-11. Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.
func (Version) String ¶
String implements the Stringer interface. The version string is formatted per https://semver.org/ rules
Click to show internal directories.
Click to hide internal directories.