Skip to content

Instantly share code, notes, and snippets.

@mechazod
Created March 30, 2017 21:39
Show Gist options
  • Save mechazod/49ee1f9b62bb0a3e2839b3a920b44a97 to your computer and use it in GitHub Desktop.
Save mechazod/49ee1f9b62bb0a3e2839b3a920b44a97 to your computer and use it in GitHub Desktop.
Installing go 1.4 with homebrew on OSX:
1) Create Directories
mkdir $HOME/Go
mkdir -p $HOME/Go/src/github.com/user
2) Setup your paths
export GOPATH=$HOME/Go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
3) Install Go
brew install go
4) "go get" the basics
go get golang.org/x/tools/cmd/godoc
5) Start here: https://golang.org/doc/code.html at "your first program"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment