The point is the setup.
SETUP THIS
Let’s setup in the .bashrc
export GOROOT=$HOME/.local/share/goexport GOPATH=$HOME/.local/lib/goexport PATH=$PATH:$GOROOT/bin:$GOPATH/bin$GOROOT is your Golang installation. $GOPATH is your modules. Just figured this one.
INSTALL
At the moment the latest version of Go is 1.25.0.
wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz rm -rf $GOROOT tar xvfz go1.25.0.linux-amd64.tar.gz -C $HOME/.local/share/ rm -rf go1.25.0.linux-amd64.tar.gzAll Golang package is designed under go directory. No version included in the directory. So, the binary tar.gz will always be on track.

