Last active
September 5, 2019 09:46
-
-
Save daltonbr/00a3481e2f82f8c1552bdcd586e3b7a7 to your computer and use it in GitHub Desktop.
Go Development - script for OSX
This file contains 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put this into .zshrc or .bashrc