$ git clone https://github.com/syndbg/goenv.git ~/.goenv
export GOENV_ROOT="$HOME/.goenv" export PATH="$GOENV_ROOT/bin:$PATH" eval "$(goenv init -)"
$ source .zshrc
$ goenv install -l
$ goenv install [version]
$ goenv global [version]
$ source .zshrc
$ go env GOROOT $ go env GOPATH
$ goenv install -l
$ goenv install [version]
$ goenv global [version]
$ source .zshrc
$ go env GOROOT $ go env GOPATH
$ cd ~/.goenv && git fetch --all && git pull
$ brew install go $ go version
$ brew update $ brew upgrade go
export GOPATH=$(go env GOPATH) export PATH=$GOPATH/bin:$PATH