Documentation ¶
Index ¶
- Variables
- func CheckCompatibility(currentVersion *Version, versionSupport *VersionSupport) error
- func CompareVersions(first *Version, second *Version, compareFunc func(int, int) bool) bool
- func FullVersion() string
- 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 BuildMetadata = ""
BuildMetadata represents build information of current release (e.g, nightly build information)
View Source
var CurrentGaugeVersion = &Version{0, 8, 0}
CurrentGaugeVersion represents the current version of Gauge
Functions ¶
func CheckCompatibility ¶ added in v0.1.7
func CheckCompatibility(currentVersion *Version, versionSupport *VersionSupport) error
func CompareVersions ¶
func FullVersion ¶ added in v0.4.0
func FullVersion() string
FullVersion returns the CurrentGaugeVersion including build metadata.
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.