version

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package version provides functions for working with versions

Index

Constants

View Source
const (
	// Asc sorts in the ascending direction
	SortAsc = "asc"
	// Desc sorts in the descending direction
	SortDesc = "desc"
)

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(left, right *go_version.Version, d string) bool

func Exists

func Exists(archiveVersion, downloadDir string) (bool, error)

Exists checks if given archive version exists in the specified download directory.

func GetVersion

func GetVersion(s string) *go_version.Version

GetVersion returns the version from the given string. go1.11.4.darwin-amd64.tar.gz => 1.11.4

func Segments

func Segments(v *go_version.Version) *go_version.Version

Segments returns a new version which is just the numeric segments of v.

Types

This section is empty.

Jump to

Keyboard shortcuts

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