Golang version management

Maker Su
Maker Su
Jul 30, 2017 · 1 min read

brew

brew update
brew search go
// install
brew install go
brew info go
go env
// uninstall
brew switch go 1.5.4
brew uninstall go
brew switch go 1.8.3

gvm

// install gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source "$HOME/.gvm/scripts/gvm"
// install go
gvm list
gvm install go1.8.3
gvm use go1.8.3 [--default]
// Mac OS X Requirements
xcode-select --install
brew update
brew install mercurial

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade