version

package
v0.0.0-...-c44a825 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupVersion

func CleanupVersion(version string) string

func IsSupported

func IsSupported(haveVersion, wantVersion string) bool

IsSupported takes two versions, current version (haveVersion) and a minimum requirement version (wantVersion) and checks if the current version is supported by comparing it with the minimum requirement.

func MajorMinor

func MajorMinor(haveVersion string) string

MajorMinor takes a version (haveversion) and converts it to a string of just version major and minor. Eg v1.5.8-alpha.3 = "1.5"

Types

This section is empty.

Jump to

Keyboard shortcuts

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