lib

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STABLE_VERSION  = "https://golang.org/dl/?mode=json"
	GO_DOWNLOAD_URL = "https://golang.org/dl" // redirects to https://dl.google.com/go
)

Variables

View Source
var (
	OperatingSystems = []string{"aix", "darwin", "dragonfly", "freebsd", "illumos", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows"}
	Architectures    = []string{"386", "amd64", "arm", "arm64", "ppc64", "ppc64le", "mips", "mips64", "mips64le", "riscv64", "s390x", "wasm"}
)

Functions

func DownloadAndVerify

func DownloadAndVerify(destdir, filename, checksum, extractDir string) error

DownloadAndVerify downloads the Go binary that is passed in and verify it against its sha256 checksum. If there is already a local file that matches the checksum then it will not download another version.

func LatestVersion

func LatestVersion(goos, goarch, kind string) (filename string, sha256sum string, err error)

LatestVersion returns the highest stable versions for the platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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