DEV Community

Yunis Quliyev
Yunis Quliyev

Posted on

I learned Rust with rustlings, so I built the same thing for Go

#go

I've been wanting to learn Go properly for a while. Tried the usual — read the docs, watched tutorials, copy-pasted
examples. Nothing stuck.

Then I remembered how I actually learned Rust: rustlings. Small exercises, fix the code, see it pass, move on. No setup, no
fluff. Just you and the compiler having a conversation.

So I built the same thing for Go.

golings is a CLI tool that gives you 42 exercises across 7 topics — variables, functions, structs, interfaces, goroutines,

channels, and error handling. You clone the repo, run golings watch, and it sits there waiting while you edit. Save the
file, instant feedback. Pass it, automatically moves to the next one.

Watching: exercises/05_goroutines/goroutines2.go

✗ Error:

./goroutines2.go:18:3: undefined: wg

Fix it, save, and:

✓ Compiles

✓ Output matches

Exercise complete! Moving to next...

Each exercise has // HINT: comments inline so you're never completely lost, but you have to actually write the code

yourself.

Topics go from basic syntax all the way to goroutines, channels, and errors.As — the Go-specific stuff that trips people up
coming from other languages.

GitHub:

Would love feedback, especially on the exercise content. If something's too easy, too hard, or just wrong — let me know.

Top comments (0)