Documentation ¶
Index ¶
- Variables
- func CheckCompatibility(currentVersion *Version, versionSupport *VersionSupport) error
- func CompareVersions(first *Version, second *Version, compareFunc func(int, int) bool) bool
- func GreaterThanFunc(first, second int) bool
- func IsEqual(first, second int) bool
- func LesserThanFunc(first, second int) bool
- func VersionError(level, text string, err error) error
- type Version
- func (Version *Version) IsBetween(lower *Version, greater *Version) bool
- func (Version *Version) IsEqualTo(version1 *Version) bool
- func (Version *Version) IsGreaterThan(version1 *Version) bool
- func (Version *Version) IsGreaterThanEqualTo(version1 *Version) bool
- func (Version *Version) IsLesserThan(version1 *Version) bool
- func (Version *Version) IsLesserThanEqualTo(version1 *Version) bool
- func (Version *Version) String() string
- type VersionSupport
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentGaugeVersion = &Version{0, 3, 1}
Functions ¶
func CheckCompatibility ¶ added in v0.1.7
func CheckCompatibility(currentVersion *Version, versionSupport *VersionSupport) error
func CompareVersions ¶
func GreaterThanFunc ¶
func LesserThanFunc ¶
func VersionError ¶
Types ¶
type Version ¶
func GetLatestVersion ¶ added in v0.3.0
func ParseVersion ¶
func (*Version) IsGreaterThan ¶
func (*Version) IsGreaterThanEqualTo ¶
func (*Version) IsLesserThan ¶
func (*Version) IsLesserThanEqualTo ¶
type VersionSupport ¶ added in v0.1.7
Click to show internal directories.
Click to hide internal directories.