Created
May 13, 2018 16:41
-
-
Save conorfennell/be9ae18d778a393c7b3c204a8611a7a3 to your computer and use it in GitHub Desktop.
installing GO with environment variables to set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment