-
Notifications
You must be signed in to change notification settings - Fork 4
Home
"set" allows you to set a version of Go to use globally or locally.
$ rodent set
Usage: rodent set [options] <version>
-g Set version globally
-l Directory/Workspace level version
Example:
rodent set -g go1.4
By default the version of go in-use would be 1.4, however you can temporarily change the version in your current shell by executing the following command:
rodent set -l go1.3.3
By default rodent's initialization occurs when you execute the "go" command to avoid performing eval calls whenever you use your shell with any commands. Sometimes, it is useful to work in a shell with the Go environment variables already set and inherited (i.e: vim, godoc etc.). For this, you may execute the following:
rodent init
to initialize your current shell. To do it automatically you may as well set "rodent init" in your shell profile file.
"install" allows you to install a specific version of Go.
$ rodent install
Usage: rodent install [options] <version>
-s Set the version globally after install
-p Cross-compile for a specific platform
-f Force installation
-l List all available versions
A specific page in this wiki is reserved for cross-compilation, so for now this section will skip this.
$ rodent install -l
Currently rodent sources a file which contains the up-to-date list of all Golang releases. However it can happen that there is a delay between the release file being updated by the time upstream publishes a new release of Go; for this special case, "rodent install" will also accept a Go version not listed in the above output.
$ rodent versions
Output:
$ rodent versions
go1.3.2
i go1.3.3
go1.4
The line with the tag "i" signals the version currently in-use either globally or locally.
$ rodent uninstall
Example:
$ rodent uninstall go1.3.2