Skip to content

Instantly share code, notes, and snippets.

@cozzbie
Created February 8, 2021 01:22
Show Gist options
  • Save cozzbie/59ffba00cb913623ba7febbfef177853 to your computer and use it in GitHub Desktop.
Save cozzbie/59ffba00cb913623ba7febbfef177853 to your computer and use it in GitHub Desktop.
Install golang with homebrew
# Install golang with homebrew
brew install go --cross-compile-common
# Set following env variables in ~/.bashrc or ~/.zshrc
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
export PATH=$PATH:$GOROOT/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment