By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
You do not need a complicated setup. You need four things: a terminal to talk to your computer, an editor to write files, the Go toolchain to run them, and a folder to keep them in. Everything in this course uses only those.
| Tool | What it is | What you will do with it |
|---|---|---|
| Terminal | A text window for running commands | Run your program, run tests |
| Editor | A program for editing text files | Write and save .go files |
| Go toolchain | One go command with everything inside | Run, build, test, format |
| A folder | Your project home | Hold your code and later a JSON file |
Download the current installer from go.dev/dl and run it. On macOS and Windows the installer sets everything up for you. On Linux, unpack the archive to /usr/local/go and add /usr/local/go/bin to your PATH, or install golang from your distribution's package manager.
# After installing, open a NEW terminal window so PATH changes are picked up.
go version
# You should see something like:
# go version go1.23.4 windows/amd64If you see go: command not found or 'go' is not recognized, the installer did not put Go on your PATH. Close and reopen the terminal first. If it still fails, re-run the installer or add the Go bin directory to PATH yourself.
Any plain text editor works, but Visual Studio Code with the official Go extension is the easiest starting point: it runs your file with one click, underlines mistakes, and formats code when you save. Install VS Code, open it, and install the extension named Go published by the Go team.
A terminal starts you in a folder and waits for a command. You need six commands for this entire course. The table shows both macOS/Linux and Windows versions where they differ.
| What you want | macOS / Linux | Windows PowerShell |
|---|---|---|
| See where you are | pwd | pwd |
| List files | ls | ls |
| Make a folder | mkdir penny | mkdir penny |
| Enter a folder | cd penny | cd penny |
| Go up one level | cd .. | cd .. |
| Open this folder in VS Code | code . | code . |
You will keep the whole course in one folder called penny. Create it, enter it, and declare it a Go module. A module is a folder of Go code with a name; go mod init writes a small go.mod file that remembers the name.
# 1. Make the folder and enter it. Use the terminal, not the editor.
mkdir penny
cd penny
# 2. Give the folder a module name. Any short name works; use "penny".
go mod init penny
# 3. Confirm the file exists.
ls
# macOS/Linux: go.mod
# Windows: go.modThis is the whole workflow for weeks: edit a file, run it, read the result, edit again. Save this loop. There is no hidden step.
Open the penny folder in your editor.
Create or edit a .go file and save it.
Run go run . in the terminal.
Read the output or the error and change one thing.
Run it again. Repeat.
Key takeaways
You need a terminal, an editor, the Go toolchain and one project folder.
go version proves the toolchain is installed and on your PATH.
go mod init penny turns a folder into a Go module.
The workflow is always: edit, go run ., read, repeat.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.