Since Go 1.22, http.ServeMux supports HTTP methods and named path segments directly in route patterns—for example, GET /posts/{slug}.
Handlers can read path parameters with r.PathValue("slug") without reaching for external routers or splitting URL strings by hand.
For projects that just need clean REST or server-rendered HTML endpoints, the standard library keeps builds fast and maintenance effortless.