Created
February 8, 2021 01:22
-
-
Save cozzbie/59ffba00cb913623ba7febbfef177853 to your computer and use it in GitHub Desktop.
Install golang with homebrew
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 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