Skip to content
GDP for Noobs

21 patterns · every example is a real, runnable Go program

Go Design Patterns
for Noobs

Learn the patterns Go developers actually use, explained with coffee machines and pizza orders instead of jargon. Then play with them, step through real code, and quiz yourself.

21
patterns
10
playgrounds
0
jargon walls
~/go-patterns
$ go run ./singleton
0%

Your learning journey starts here

Progress is saved in this browser. Mark a pattern as learned at the bottom of each lesson.

How every lesson works

  1. 01

    Real-life analogy

    Every pattern starts with an everyday story, before any code.

  2. 02

    Play with it

    Click, drag and toggle an interactive model of the pattern.

  3. 03

    Code walkthrough

    Step through a complete Go program, line by line.

  4. 04

    Run & quiz

    See the real output, then check yourself with a quick quiz.

Creational patterns

How things get made.

Control and simplify object creation.

Structural patterns

How things fit together.

Compose types into bigger structures.

Behavioral patterns

How things talk.

Organise responsibilities and communication.

Concurrency patterns

Go's superpower.

Goroutines and channels working together safely.

Pattern finder

Don't know the name? Describe the problem.

Patterns are just names for solutions to common problems. Type what you're trying to do and we'll point you at the pattern that solves it.

Already know a few? Take the 10-question quiz →