This is a creation in Article, where the information may have evolved or changed.
Install go under Mac
Easy to manage and upgrade based on Homerbrew installation
brew install go
Configuration path
vim ~/.bash_profile
#export PATHexport GOROOT=/usr/local/Cellar/go/1.8.1/libexecexport GOBIN=$GOROOT/binexport GOPATH=/Users/antic/www/goexport PATH=$PATH:$GOBIN
Let the configuration take effect immediately
source .bash_profile
Viewgo env
antic:~ antic$ go envGOARCH="amd64"GOBIN="/usr/local/Cellar/go/1.8.1/libexec/bin"GOEXE=""GOHOSTARCH="amd64"GOHOSTOS="darwin"GOOS="darwin"GOPATH="/Users/antic/www/go"GORACE=""GOROOT="/usr/local/Cellar/go/1.8.1/libexec"GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"GCCGO="gccgo"CC="clang"GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dw/35ddtk3n68d3p_sy3052gzr80000gn/T/go-build692262960=/tmp/go-build -gno-record-gcc-switches -fno-common"CXX="clang++"CGO_ENABLED="1"PKG_CONFIG="pkg-config"CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"
Development tools