Skip to content

Instantly share code, notes, and snippets.

@ansonl
Created April 26, 2016 02:29
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 ansonl/94b1a30c9c023ba51c382dc00b3ef544 to your computer and use it in GitHub Desktop.
Save ansonl/94b1a30c9c023ba51c382dc00b3ef544 to your computer and use it in GitHub Desktop.
go install
#!/bin/sh
#download required source control
sudo apt-get install git mercurial htop
#setup Go lang
cd ~
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
#set envvars
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/goworkspace
export PATH=$PATH:$GOPATH/bin
export PORT=80
#create go workspace
mkdir -p $GOPATH/src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment