The Go project and tools are open source and community-driven. To compile and run Go code on your computer, you will need to download and install the "Go tool", which can be found here. More detailed installation instructions are here.
Go source files can be written in a text editor, or using various IDE's (integrated development environments). There is no official or predominant IDE or editor for Go. This screencast walks through the standard uses of the Go tool.
-
Connect to Greatlakes (more information here)
-
Type
module load go -
Create a directory called
goat the top of your home directory.
- Download the latest version of the Go tools here and read the installation instructions
- Type
go get golang.org/x/tools/cmd/goimportsto get the goimports tool
See the goimports page for instructions on configuring in your editor.