Documentation ¶
Overview ¶
Package golang provides tools for Go version management on localhost.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotDownloaded = fmt.Errorf("not downloaded")
Functions ¶
func BinaryPath ¶
BinaryPath returns path to go binary for provided version.
func Install ¶
Install installs requested Golang version. does: go install golang.org/dl/go1.10.7@latest go1.10.7 download
func UseVersion ¶
UseVersion sets goBinPath symlink to requested Go version (must be installed).
Types ¶
type ListOpts ¶
type ListOpts struct { // ShowRemotes adds to list available remote versions. ShowRemotes bool // ShowRemotes adds to list all remote versions, not only latest minor version for every major version. ShowAllRemotes bool // ShowOutdated adds to list even old Go versions (older than 1.13). ShowOutdated bool }
ListOpts controls List behaviour.
Click to show internal directories.
Click to hide internal directories.