Created
April 26, 2016 02:29
-
-
Save ansonl/94b1a30c9c023ba51c382dc00b3ef544 to your computer and use it in GitHub Desktop.
go install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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