Mac OS – Install Golang with Homebrew
# Install go/golang with homebrew brew install go –cross-compile-common # Set following env variables in ~/.bashrc or ~/.zshrc export GOPATH=$HOME/golang export GOROOT=/usr/local/opt/go/libexec export GOBIN=$GOPATH/bin export PATH=$PATH:$GOPATH export PATH=$PATH:$GOROOT/bin
Read more "Mac OS – Install Golang with Homebrew"