Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.44 KB

File metadata and controls

44 lines (31 loc) · 1.44 KB

Go toolchain installation and configuration

Installation and setup

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.

Greatlakes

  • Connect to Greatlakes (more information here)

  • Type module load go

  • Create a directory called go at the top of your home directory.

Your own machine

Goimports utility and editor configuration (optional)

  • Type go get golang.org/x/tools/cmd/goimports to get the goimports tool

See the goimports page for instructions on configuring in your editor.