1. Preparing the Go Environment

#golang

To run and execute code in Go you should first download the compiler. The installers for Linux, macOS and Windows can all be found on the official website here.

Once the compiler is installed we run the following command to make sure everything is working as expected

go version

Then it is highly recommended to install an IDE. It helps with code suggestions and highlighting errors in our code. My personal preference is VScode. I like it that I can use the same IDE in every OS.

When VSCode is installed we go ahead and install the GO language support for VSCode from the extensions:

Last updated