Categories

How to Install

Generics in Go: three years later, what has survived

Generics arrived in Go in March 2022 with high expectations and some skepticism. Three years on, idiomatic code barely uses them on the surface, but they have transformed deep libraries: type-safe collections, database clients, concurrency primitives. This analysis examines what has taken hold and why.

Software Development

Go 1.22: Loop Variables and ServeMux, What Still Applies in 2026

Go 1.22, from February 2024, brought two changes that still define idiomatic Go in Go 1.27: each for-loop iteration gets its own variable when go.mod declares go 1.22 or later, and net/http.ServeMux routes by method and wildcards such as GET /users/{id}. This guide checks both with Go 1.27.3 and notes what changed since.