We will install the Go language via this shell script by Jorge Canha.
This script is brilliant. It provides you with a single user installation of Go. It does everything for you including the download of the latest Go version.
As regular user 'pinger' download the Golang Tools Install Script:
pinger@vps:~$ wget --no-check-certificate https://github.com/canha/golang-tools-install-script/archive/master.zip
Unzip master.zip
pinger@vps:~$ unzip master.zip
and then move into the extracted folder
pinger@vps:~$ cd golang-tools-install-script-master
and do:
pinger@vps:~/golang-tools-install-script-master$ bash goinstall.sh
That should set you up with an installation of Go and automatically insert the necessary PATH information into your .bashrc file.
Logout of user pinger. Then log in again.
The Go language is now installed.
To check that your Go installation is working run the following command:
pinger@vps:~$ go version
go version go1.18.1 linux/amd64
Done!