Go Tutorial: Getting Started
Write your first Go program. No setup required — just you and the editor.
Your first Go program
In **five** short steps you will go from zero to writing real code.
No theory upfront. No vocabulary tests. Just you, a text editor, and a computer that listens.
Each step is quick. Do them in order.
Let's go.
What you'll learn in this Go getting started tutorial
This interactive Go tutorial has 5 hands-on exercises. Estimated time: 10 minutes.
- Your first Go program 🐹 — Every Go program has a `func main()` — that's where it starts running. Click **Run & check** to see it in action.
- Announce Your Library — Change the message to `"Welcome to my library!"` and add a second Println for the hours: `"Open daily from 9 AM to 8 PM"…
- Print the Book Count — Use `:=` to create a variable named `books` with value `1200`, then print a sentence using that variable.
- Meet the Librarian — Create `name := "Alice"` and `books := 5000`, then print each on its own line.
- Comments are for humans 🤯 — Lines starting with `//` are comments — Go ignores them. Add a `//` comment above the Println, then change the message t…
Go Getting Started concepts covered
- Your first Go program