Documentation
¶
Overview ¶
Package cversion provides utilities for working with Centrify version strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComparisonResult ¶
type ComparisonResult int
const ( Earlier ComparisonResult = iota - 1 Equal Subsequent )
type Version ¶
func Parse ¶
Parses version strings into a Version struct. Strings like the following are accepted:
"17.2", "17.2.100", "17.2-100", "17.2.100-NotYet", "17.2-100-NotYet", etc.
Strings like the following are (currently) not accepted:
"", "foo", "17.2.", "17.2-NotYet", etc.
If the build number is missing from the input, it is treated as if it were 0.
func (*Version) Compare ¶
func (version *Version) Compare(otherVersion Version) ComparisonResult
func (*Version) MajorMinorString ¶
Click to show internal directories.
Click to hide internal directories.