Skip to content
Breakpoint logobreakpoınt

Golings

Fix small broken Go programs until they compile and pass, Rustlings-style

Every exercise file starts with the comment I AM NOT DONE, and golings will not move on until you delete it, even once the code compiles. There is a reason for that. In his Conf42 Golang 2023 talk the author pointed out that a program which compiles can look like a pass, so exercises carry comments spelling out what correct means.

Play on github.com

Free · No login · Terminal · Beginner

Screenshot of Golings

About Golings

The set has 43 exercises. Thirty-four are compile exercises, beginning with variables1, where a declaration has lost its variable name; nine are test exercises, where the code builds but a test fails. Topics run through variables, functions, if, switch, primitive types, arrays, slices, maps, range, structs, anonymous functions and generics, and the last three are about concurrency. In concurrent2, a hundred goroutines bump one counter, and the hint steers you to a mutex so the test sees 100. golings watch re-runs your current exercise on every save, and golings hint prints a nudge rather than an answer.

Rustlings is the direct model, done marker included. Exercism's Go track adds mentors and a much larger catalogue, while golings stays as one folder on your machine and one command.

Questions about Golings

Is there a way to try the Go exercises without installing anything?

Yes, the README links a browser version of Golings made by Gabriel Grubba, so you don't need Go installed for that.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help