Created
May 6, 2019 05:19
-
-
Save dimorphic/e998febb560a5418e6261ad3cfc11da3 to your computer and use it in GitHub Desktop.
Install Go (lang) on OSX via Homebrew
This file contains hidden or 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 Homebrew if needed) | |
## /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
## Add GO paths to .bash_profile / .zsh etc | |
export GOPATH="${HOME}/.go" | |
export GOROOT="$(brew --prefix golang)/libexec" | |
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin" | |
## Install Go (Homebrew installed) | |
brew install go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment