Instructions for installing a local copy of the Go runtime

Some customers ask if we provide a copy of the Go runtime in order to build or run scripts written in the Go programming language directly on our servers.

While a full description of what Go is and how to use it is outside the scope of this page, we do provide instructions for installing your own copy of the Go runtime using command-line shell access that comes with all Web hosting accounts.

Installing a specific version of Go

You should first find the version of Go you want on the official Go downloads page. You can then copy the download link location and use it below. This example uses go1.22.4.linux-amd64.tar.gz but you can use any Linux x86-64 release.

mkdir -p $HOME/.local/go
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
tar -C $HOME/.local -xzf go1.22.4.linux-amd64.tar.gz go/
echo 'export PATH=$HOME/.local/go/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile

After doing this, you should be able to type go version to see it working.