Setting up the environment If Go is not pre-installed in your system you can go to https://golang.org/dl/ and choose your platform to download and install Go. To set up a basic Go development environment, only a few of the many environment variables that affect the behavior of the go tool (See: Listing Go Environment Variables for a full list) need to be set (generally in your shell's ~/.profile f