Building a REST API in Go with only the standard library
Part 1 of the shorty series: the HTTP API of a URL shortener using only net/http. Go 1.22+ ServeMux patterns like GET /links/{code}, strict JSON in and out, error mapping, middleware without a framework, timeouts and httptest tests.