Skip to content

Instantly share code, notes, and snippets.

@yano3
Created June 5, 2014 07:22
Show Gist options
  • Save yano3/8ae3e2e13aaa6d9eef9f to your computer and use it in GitHub Desktop.
Save yano3/8ae3e2e13aaa6d9eef9f to your computer and use it in GitHub Desktop.
brew install go
$ brew install go
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/go-1.2.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring go-1.2.2.mavericks.bottle.tar.gz
==> Caveats
As of go 1.2, a valid GOPATH is required to use the `go get` command:
http://golang.org/doc/code.html#GOPATH
`go vet` and `go doc` are now part of the go.tools sub repo:
http://golang.org/doc/go1.2#go_tools_godoc
To get `go vet` and `go doc` run:
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/go/1.2.2: 3981 files, 115M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment