Skip to content

Instantly share code, notes, and snippets.

@vitor-caetano
Last active February 21, 2017 12:52
Show Gist options
  • Save vitor-caetano/e7c255e25e0ca7f38c65dc2a55757709 to your computer and use it in GitHub Desktop.
Save vitor-caetano/e7c255e25e0ca7f38c65dc2a55757709 to your computer and use it in GitHub Desktop.
Setup Go

Install the Go tools

$ brew update
$ brew install go

Create gocode folder

$ mkdir $HOME/gocode

Add to $HOME/.bash_profile the following:

export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin

Get code from github.com

$ go get -u github.com/vitor-caetano/example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment