Skip to content

Instantly share code, notes, and snippets.

@metaphorical
Created December 24, 2018 08:22
Show Gist options
  • Save metaphorical/d9b0585206657f124cbe52229d9780e8 to your computer and use it in GitHub Desktop.
Save metaphorical/d9b0585206657f124cbe52229d9780e8 to your computer and use it in GitHub Desktop.
# To install golag on MacOSX using brew and make sure everything is brewed in properly
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"
brew install go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment