versions

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package versions provides versioning utilities.

Deprecated: This package is no longer supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(target, lowerBound, higherBound string) bool

Between returns if the target contains a version between the lowerBound and higherBound.

func FindVersionsFromGoWebsite

func FindVersionsFromGoWebsite() ([]string, error)

FindVersionsFromGoWebsite returns all known Go versions from the Go package mirror at https://go.dev/dl/.

func FindVersionsUsingGoList

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

FindVersionsUsingGoList returns all locally known version of module with moduleName.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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