Tested X86_64 and ARM64 Architecture
VERSION=1.18.3 #change to latest version
sudo ./update.sh
tested for bash
if you use another shell e.g zsh
maybe add change in .zprofile
or .zshrc
add to ~/.profile
(or /etc/profile
for system wide installation)
if [ -d "/usr/local/go/bin" ] ; then
PATH=$PATH:/usr/local/go/bin
fi
# e.g
. ~/.profile
go version
# Output e.g
go version go1.18 linux/amd64