The Go programming language is an open source project to make programmers more productive.
Go is a compiled language, and makes standalone binaries. Once a Go program is compiled, you can run it without the need to set environment variables.
Go is not installed on HPC in the usual sense (at least not yet).
But you can use
conda to download it:
Installing Go via conda¶
After connecting to ShARC, start an interactive session with the qrshx command.
module load apps/python/conda
conda environment (you can choose a different name if you want)
conda create --name my-go-stuff
. activate my-go-stuff
(On newer versions of conda, it’s
conda activate go)
Following the conda-forge page install Go.
conda install --channel conda-forge go
Now you should be able to run the Go compiler to see its help message:
Running the Go compiler¶
In subsequent sessions, you do not need to create a conda environment, nor install go. You do need to load conda and activate your environment:
module load apps/python/conda . activate my-go-stuff