install golang

1
2
3
4
5
6
7
8
9
#https://golang.org/dl/
tar -C /etc -xzf go*.tar.gz
#to ~/.bashrc
alias go='/etc/go/bin/go'
export GOROOT=/etc/go
export PATH="$PATH:$GOROOT/bin"
export CGO_ENABLED=1