Wrapping up the Go series: recap and where to learn next

This is the last chapter of the series. It recaps what the earlier chapters covered and points to the resources worth using next.
- Variables and types. Go is statically typed, with built-in integer, floating-point, boolean and string types, and type inference via
:=. Conversions between types are always explicit. - Control flow.
if,switchand a single loop keyword,for, which also covers “while” and infinite loops. - Functions. Functions can return multiple values, which is how Go returns a result and an
errortogether. - Packages. Code is organised into packages and modules. The standard library covers HTTP, JSON, file I/O, testing and more without third-party dependencies.
- Pointers. Go passes everything by value. A pointer lets a function modify the caller’s variable or avoid copying a large struct.
- Concurrency. Goroutines run functions concurrently, and channels pass values between them.
Habits worth keeping
Section titled “Habits worth keeping”- Keep it plain. Idiomatic Go favours obvious code over clever code. If a reviewer has to stop and decode a line, rewrite it.
- Handle every error. Check
errwhere it’s returned and add context withfmt.Errorf("reading config: %w", err)rather than discarding it. - Use concurrency where it helps. Goroutines suit I/O-bound and independent work. They add complexity, so don’t reach for them by default, and run your tests with
go test -raceonce you do. - Let the tools do the work. Run
go fmtandgo veton everything. Formatting arguments disappear when everyone uses the same formatter. - Ask for help. Stack Overflow, the Go Forum and the golang-nuts mailing list are all active.
Where to learn next
Section titled “Where to learn next”- Official Go documentation: the tutorials, Effective Go, the language specification and the standard library reference.
- A Tour of Go: an interactive walk through the language in the browser.
- Go by Example: short annotated programs, from basic syntax to goroutines, timers and rate limiting.
- The Go Programming Language by Alan A. A. Donovan and Brian W. Kernighan (2015): a thorough book-length introduction. It predates modules and generics, so pair it with the official docs for those.
- Gophercises: free coding exercises with video walkthroughs of the solutions.
References
Section titled “References”© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)