}

Install go in raspberrypi steps

Created:

Install go in raspberry pi

First we are going to download go from google.com, then we uncompress the file. Finally we extend the PATH env variable to be able to execute go from anywhere. If you already installed go using apt, please remove it before following this steps:

wget https://dl.google.com/go/go1.10.3.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.10.3.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin 

If you want to have go available on you terminal add the following line to .profile or .zshrc

export PATH=$PATH:/usr/local/go/bin 

Verify that you have installed 10.3 version with:

go version

How to remove old golang (installed with apt)

sudo apt remove golang
sudo apt-get autoremove
source .profile