Skip to content

Instantly share code, notes, and snippets.

@daltonbr
Last active September 5, 2019 09:46
Show Gist options
  • Save daltonbr/00a3481e2f82f8c1552bdcd586e3b7a7 to your computer and use it in GitHub Desktop.
Save daltonbr/00a3481e2f82f8c1552bdcd586e3b7a7 to your computer and use it in GitHub Desktop.
Go Development - script for OSX
# Go development
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"
# Then finally install go, with Homebrew.
# brew install go
# Also a bunch of dev tools!
# go get golang.org/x/tools/cmd/godoc
# go get golang.org/x/lint/golint
@daltonbr
Copy link
Author

daltonbr commented Sep 5, 2019

put this into .zshrc or .bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment