Skip to content

Instantly share code, notes, and snippets.

@karuna
Created March 27, 2018 07:21
Show Gist options
  • Save karuna/ecb224f491abb3bf70f6fd6f153b0449 to your computer and use it in GitHub Desktop.
Save karuna/ecb224f491abb3bf70f6fd6f153b0449 to your computer and use it in GitHub Desktop.
# Linux Example (assumes ~/bin is in PATH).
curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.0.5/gvm-linux-amd64
chmod +x ~/bin/gvm
eval "$(gvm 1.10)"
go version
function go_162 {
export GOROOT="/Users/fincep005/.gvm/versions/go1.6.2.darwin.amd64"
export PATH="$GOROOT/bin:$PATH"
}
function go_1100 {
export GOROOT="/Users/fincep005/.gvm/versions/go1.10.darwin.amd64"
export PATH="$GOROOT/bin:$PATH"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment