Go

Go (go) is the reference and most popular Go compiler. The compiler program’s name is simply go. In all software stacks, the module name is go. To load a specific version, run

module load go/VERSION

To load the default version, run

module load go

Targeting CPU Architecture

By default, the go will compile code targeting some generic version of the CPU the compiler is run on. The compiler can be forced to compile for a different architecture by setting the GOARCH environmental variable like

export GOARCH=ARCH

At the moment, all CPU architectures in the clusters use the same value of GOARCH, which is amd64. This would change in the future if any other architectures (e.g. ARM or RISC-V) are added to the clusters.