Created
February 3, 2021 22:28
-
-
Save ChechoCZ/b511a18a34c73fd2f05a7fa0447a3e5f to your computer and use it in GitHub Desktop.
Install Go Lang Mac using Brew
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 | |
1. brew update&& brew install golang | |
// SETUP | |
2. mkdir -p $HOME/go/{bin,src,pkg} | |
// SET ENV | |
export GOPATH=$HOME/go | |
export GOROOT="$(brew --prefix golang)/libexec" | |
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment