Skip to main content
In this tutorial, we will install Go and set up our code editor.

Download

First, download Go from the official downloads page.
Make sure to download the version appropriate for your operating system.

Installation

1

Install Go

Open the package file you downloaded and follow the prompts to install Go.The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable.You may need to restart any open Terminal sessions for the change to take effect.
2

Verify Installation

Open a command prompt and type the following command:
go version
3

Confirm

Confirm that the command prints the installed version of Go.

VS Code Setup

For this course, we recommend using Visual Studio Code as your code editor. You can download it from the official website.
Feel free to use any other code editor you prefer. The concepts taught in this course apply regardless of your editor choice.

Go Extension

1

Install the Go Extension

Install the Go extension from the VS Code marketplace.This extension makes it much easier to work with Go in VS Code by providing:
  • IntelliSense and auto-completion
  • Code navigation
  • Debugging support
  • Integrated testing
  • And many more features
2

You're Ready!

That’s it for the installation and setup of Go. Let’s start the course and write our first hello world program!

Build docs developers (and LLMs) love