versions

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 3 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(version1, version2 string) (int, error)

CompareVersions ... semantic version (X.Y.Z) 1 if version 2 is greater then version 1, -1 if not -2 & error if can't compare (if not supported component found)

func IsVersionBetween

func IsVersionBetween(verBase, verLower, verUpper string) (bool, error)

IsVersionBetween ...

returns true if it's between the lower and upper limit
or in case it matches the lower or the upper limit

func IsVersionGreaterOrEqual

func IsVersionGreaterOrEqual(verBase, verLower string) (bool, error)

IsVersionGreaterOrEqual ...

returns true if verBase is greater or equal to verLower

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL