Real code, really run
When an exercise asks you to write a program, it compiles and runs on the official Go Playground, and your output is checked for you.
Bite-sized exercises that have you reading, fixing, and writing real Go from the first minute. Nothing to install, and no account needed to start.
No account, no credit card, no install.These are the real first exercises from My First Go Program, checked by the same engine as the app. No account needed.
Go programs all have a main function. Can you see what's missing with this one?
Select the missing character:
package main
func main()
fmt.Println("Hello, Go!")
}
Can you finish the following Go program?
Fill in the entry point function name to make the program run.
package main import "fmt" func () { fmt.Println("Hello, World!") }
Go programs have a specific structure. Can you put these blocks in the right order?
Drag the lines, or use the arrows, to put the program in order.
func main() {
fmt.Println("Go is awesome!")
import "fmt"
package main
}
Every Go program has essential parts that work together. The package declares where the code belongs, import brings in tools, and func main() is where execution starts.
Match each program part to what it does.
Pick an item on the left, then its partner on the right.
Uh oh, this program has a bug! 🐛 Can you spot the line with the error?
Click the line with the bug.
Time to write some real code! Use fmt.Println to print text to the console.
Write code that prints exactly: Hello, World!
You don’t learn Go by watching someone else write it. You learn it by reading real programs, spotting real bugs, and running real code, a few minutes at a time, until the syntax stops being something you look up and starts being something you know.
Streaks, XP, and hearts keep you coming back, and the code you write is the real thing.
When an exercise asks you to write a program, it compiles and runs on the official Go Playground, and your output is checked for you.
Show up for a few minutes a day and your streak grows. Consistency beats cramming, and the gopher keeps count.
Every exercise pays out XP. Level up from Hello, World to goroutines and channels.
Wrong answers cost a heart, so you slow down and actually read the code. One refills every four hours.
Each unit builds on the last, so you always know what to learn next, from your first program to concurrency and testing.
15 units and 241 exercises, in an order where each one builds on the last. The first 10 units are free forever.
hands-on exercises across 15 units, with 3,565 XP to earn. New ones are added regularly.
I’m an engineering leader who has spent years building distributed systems in Go, at companies like Cloudflare and General Electric and at high-growth startups like Curve and Crowdcube. I’ve been writing Go in production since 2018.
In 2022 I published the best-selling book Domain-Driven Design with Golang, and I teach Go through ByteSizeGo’s courses. I built GoFlow for the part of learning Go that no book or video can do for you: the practice.
The first 10 units are free forever. Upgrade to unlock the whole curriculum and practice as much as you like.
Everything you need to start.
$0forever
Start freeFor steady daily practice.
$10/month
Get BasicUnlimited practice, any time.
$20/month
Get ProChange or manage your plan any time from Manage Subscription in your account menu.
No. You can play all of My First Go Program right now, and your progress is saved on this device. When you want to keep it, create a free account with just your email and it comes with you.
Yes. The first 10 units are free forever, no credit card required. Basic and Pro unlock all 15 units, and Pro adds unlimited hearts and energy for when you want to binge.
No. Everything happens in your browser. When an exercise asks you to write a full program, it compiles and runs on the official Go Playground, so you write and run real Go without installing anything.
Anyone who wants Go to stick. If Go is your first programming language, the early units assume nothing. If it’s your fifth, you’ll move through them fast and hit the interesting parts sooner.
About five minutes. The daily goal is three exercises: long enough to learn something real, short enough to fit in a coffee break. Streaks reward showing up daily, not marathon sessions.
Each wrong answer costs a heart, and starting a new exercise costs one energy (Unit 1 is free: its exercises don't use any). Free accounts have 5 hearts, with one coming back every four hours, and 10 energy that refills at midnight. Basic doubles both, and Pro makes them unlimited.
Use Manage Subscription in your account menu to change plans, switch between monthly and yearly, or update your payment details.
Five minutes from now you’ll have written real Go. No account needed until you want to save your progress.
No credit card required