Skip to content

Instantly share code, notes, and snippets.

@conorfennell
Created May 13, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conorfennell/be9ae18d778a393c7b3c204a8611a7a3 to your computer and use it in GitHub Desktop.
Save conorfennell/be9ae18d778a393c7b3c204a8611a7a3 to your computer and use it in GitHub Desktop.
installing GO with environment variables to set
# 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