Skip to content

Instantly share code, notes, and snippets.

@dimorphic
Created May 6, 2019 05:19
Show Gist options
  • Save dimorphic/e998febb560a5418e6261ad3cfc11da3 to your computer and use it in GitHub Desktop.
Save dimorphic/e998febb560a5418e6261ad3cfc11da3 to your computer and use it in GitHub Desktop.
Install Go (lang) on OSX via Homebrew
## (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