Skip to content

Instantly share code, notes, and snippets.

@gnclmorais
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnclmorais/4f3de3745ae05fa42bd4 to your computer and use it in GitHub Desktop.
Save gnclmorais/4f3de3745ae05fa42bd4 to your computer and use it in GitHub Desktop.
# for golang
# mkdir $HOME/go
# mkdir -p $GOPATH/src/github.com/user
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
#!/usr/bin/env sh
# As of 20130519, go 1.1 has been released.
# The proccess of the gist should be OK for go 1.1 .
echo "add lines to .bashrc or .zshrc first"
brew update && brew upgrade
brew install go
brew install git
brew install mercurial
mkdir $HOME/go
mkdir -p $GOPATH/src/github.com/user
echo "installation done."
echo "export GOPATH=$HOME/go"
go get code.google.com/p/go-tour/gotour
gotour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment