Documentation ¶
Index ¶
- Constants
- func GetNewest(versions []string) string
- func IsPrerelease(currentVersion string) bool
- func Lt(version1, version2 string) (bool, error)
- func Lte(version1, version2 string) (bool, error)
- func Next(currentVersion, kind string) (string, error)
- func NextPrerelease(currentVersion string) (string, error)
Constants ¶
View Source
const ( // Major version Major = "major" // Minor version Minor = "minor" // Patch version Patch = "patch" )
Variables ¶
This section is empty.
Functions ¶
func IsPrerelease ¶
IsPrerelease detects if release is prerelease
func Lt ¶
Lt checks if version1 is less-than version2, returns error in case of invalid version string
func Lte ¶ added in v0.8.9
Lte checks if version1 is less-than or equal version2, returns error in case of invalid version string
func NextPrerelease ¶
NextPrerelease returns pre-release version e.g. current -> 0.10.1; nextPrerelease -> 0.10.2-beta001
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.