versions

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(target, lowerBound, higherBound string) bool

func CleanVersion added in v0.1.5

func CleanVersion(v string) string

CleanVersion fixes some versions that might not follow the A.B.C-prefix syntax. In that case we fix them to avoid hashicorp's go-version library to crash.

func FindVersionsFromGoWebsite

func FindVersionsFromGoWebsite() ([]string, error)

func FindVersionsUsingGoList

func FindVersionsUsingGoList(moduleName string) ([]string, error)

func MustParse

func MustParse(v string) *version.Version

MustParse must be used with versions that are embedded in the code or generated by us, so we are sure that the format is correct. For versions that are provided by a user we should handle properly the error.

func OrZero added in v0.1.3

func OrZero(v string) *version.Version

OrZero parses and returns the semantic version passed as argument. If the version format is incorrect, it returns "0.0.0"

Types

This section is empty.

Jump to

Keyboard shortcuts

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