Skip to content

Instantly share code, notes, and snippets.

@indyfromoz
Last active June 21, 2018 15:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indyfromoz/f1fd8787b2b858e9745b2a6d91313060 to your computer and use it in GitHub Desktop.
Save indyfromoz/f1fd8787b2b858e9745b2a6d91313060 to your computer and use it in GitHub Desktop.
Go 1.8 setup on a Mac running Sierra 10.12.3+

Install Go with Homebrew

brew install go --cross-compile-common

Update Bash profile

export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export PATH=$PATH:/usr/local/opt/go/libexec/bin

Install mercurial & bazaar

brew install hg bzr

Install golint and godoc

go get github.com/golang/lint/golint
go get golang.org/x/tools/cmd/godoc

Run godoc locally

godoc -http=:6060 &
open http://localhost:6060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment