Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { Major int /* major version */ Minor int /* minor version, or -1 */ Patch int /* patch version, or -1 */ }
func NewVersion ¶
Parse version string for form "major.minor.patch", where minor and patch are optional
func (*Version) GreaterThan ¶
Return true if this version is greater than other version
func (*Version) IsCompatible ¶
Return true if current version is compatible with other version.
"1" is compatible with "1.x.y" for any x, y "1.2" is compatible with "1.2.y", for an y "1.2.3" is compatible with "1.2.3" only
Click to show internal directories.
Click to hide internal directories.