Go comand

install go.

sudo mkdir -p /usr/local/go \

&& sudo chown -R $USER:$USER /usr/local/go \

&& cd /usr/local/go \

&& wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz — no-check-certificate \

&& rm -rf go \

&& tar xvf go1.7.3.linux-amd64.tar.gz \

&& (test -x current && rm current || true) \

&& ln -s go current \

&& echo ‘export GOROOT=/usr/local/go/current’ >> ~/.bash_profile \

&& echo ‘export PATH=$PATH:$GOROOT/bin’ >> ~/.bash_profile \

&& echo ‘export GOPATH=$HOME/projects/go’ >> ~/.bash_profile \

&& echo ‘export PATH=$PATH:$GOPATH/bin’ >> ~/.bash_profile \

&& source ~/.bash_profile \

&& mkdir -p $GOPATH/src $GOPATH/bin

```

sudo chmod a+w -R .

ls -lh

tar xf go1.9.7.linux-amd64.tar.gz

ln -s $(pwd)/go current

rm current

ln -s $(pwd)/go current

ls -lh

================

sudo mkdir -p /usr/local/go \

&& sudo chown -R $USER:$USER /usr/local/go \

&& cd /usr/local/go \

&& wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz — no-check-certificate \

&& rm -rf go \

&& tar xvf go1.7.3.linux-amd64.tar.gz \

&& (test -x current && rm current || true) \

&& ln -s go current \

&& echo ‘export GOROOT=/usr/local/go/current’ >> ~/.bash_profile \

&& echo ‘export PATH=$PATH:$GOROOT/bin’ >> ~/.bash_profile \

&& echo ‘export GOPATH=$HOME/projects/go’ >> ~/.bash_profile \

&& echo ‘export PATH=$PATH:$GOPATH/bin’ >> ~/.bash_profile \

&& source ~/.bash_profile \

&& mkdir -p $GOPATH/src $GOPATH/bin

```