Go on raspberry pi

Download page

Golang download

Latest package

latest package for ARM v6

mkdir ~/src && cd ~/src
wget https://dl.google.com/go/go1.14.4.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.14.4.linux-armv6l.tar.gz
rm go1.14.4.linux-arm64.tar.gz
vi ~/.profile

adjust PATH

PATH=$PATH:/usr/local/go/bin
GOPATH=$HOME/go

update shell

source ~/.profile