I wish more people wrote docs in this fashion. I almost always end up skipping official docs in favor of digging around for blog posts going over code examples on things.
- Go By Example: https://gobyexample.com/
- Rust By Example: https://doc.rust-lang.org/rust-by-example/
- V [a weird knockoff of Go] By Example: https://v-community.gitbook.io/v-by-example/
There's also 'Learn X in Y Minutes' (https://learnxinyminutes.com/), which covers a range of different 'X'es. They make it ridiculously easy to get going with a new tool/language, IMO. It's a superb paradigm in general.