In this lesson, we will write our first program, called “Hello, World!” This program, which prints the message “Hello, World!” to the console, is the classic start to any programming course. This program may seem simple, but it represents a significant first step in our journey to learn how to program in Go.
Before writing our first program, you will need to perform two tasks:
- Download and install the Go programming language at https://go.dev/doc/install.
- Download and install a text editor. We suggest the integrated development environment Visual Studio Code, which can be downloaded from https://code.visualstudio.com.
Code along video
Although we strongly suggest completing the code along on your own, you can find completed code from the code along in our course code repository.
Congratulations on building your first program! You are now ready to start learning the basics of Go.