Documentation ¶
Index ¶
- func Create(installName, goVersion, goPath string, settings environment.Settings) error
- func List() error
- func Reset() error
- func Set(attribute, value string) error
- func Switch(installName string) error
- func UpdateAllTo(version goinstalls.Version) error
- func UpdateToLatest(environmentName string) error
- func UpdateToVersion(environmentName string, version goinstalls.Version) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(installName, goVersion, goPath string, settings environment.Settings) error
Create creates the an environment with the passed name in the passed go version, if it exists its a noop and returns an error.
func Switch ¶
Switch changes the environment to the specified one if it exists, otherwise its a noop and returns error.
func UpdateAllTo ¶
func UpdateAllTo(version goinstalls.Version) error
UpdateAllTo will update all environments that share the common version to the passed patch.
func UpdateToLatest ¶
UpdateToLatest will update the environment to the latest available version of go
func UpdateToVersion ¶
func UpdateToVersion(environmentName string, version goinstalls.Version) error
UpdateToVersion updates the given environment to the given version or returns an error if not possible
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.