Documentation ¶
Overview ¶
Package versioncmp provides functions for comparing version strings.
Version strings are dot-separated integers with an optional pre-release suffix. A pre-release suffix is an arbitrary string with a leading dash character. All functions ignore these suffixes, so "1.2" and "1.2-rc" are considered equivalent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreaterThan ¶
GreaterThan checks if a version is greater than another.
func GreaterThanOrEqualTo ¶
GreaterThanOrEqualTo checks if a version is greater than or equal to another.
func LessThanOrEqualTo ¶
LessThanOrEqualTo checks if a version is less than or equal to another.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.