-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_go.sh
executable file
·54 lines (40 loc) · 1.29 KB
/
install_go.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
sudo mkdir /usr/local/go
echo "Installing GO 1.7.5"
wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz -O go1.7.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.7.5.linux-amd64.tar.gz
#go src path already in .bashrc
# Go path already in .bashrc
# Explanation of go workspace see https://golang.org/doc/code.html
echo "Create gowork folder"
mkdir ~/workspace/gowork
cd ~/workspace/gowork
mkdir src
mkdir src/github.com
mkdir src/github.com/malsr
mkdir bin
mkdir pkg
cd ../
pwd
go version
###############################################
# Checkout all Go related projects
# https://golang.org/dl/
# https://golang.org/doc/install
# https://golang.org/doc/code.html#Workspaces
###############################################
cd ~/workspace/gowork/src/github.com/malsr/
git clone [email protected]:MalsR/give-it-a-go.git
cd ~/workspace/gowork/src/github.com/docker/
git clone [email protected]:docker/go-units.git
###############################################
#
#
#
###############################################
go get -u github.com/tools/godep
go get -u github.com/golang/lint/golint
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/kardianos/govendor
go get -u github.com/golang/lint/golint