Skip to content

Instantly share code, notes, and snippets.

@rahulsoibam
Created March 30, 2019 09:26
Show Gist options
  • Save rahulsoibam/6956cd892cbead7888f04c79e9973967 to your computer and use it in GitHub Desktop.
Save rahulsoibam/6956cd892cbead7888f04c79e9973967 to your computer and use it in GitHub Desktop.
export GOPATH="${HOME}/Development/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"
export PATH="/usr/local/sbin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment