1. net/http (standard library)
Standard library · ships with Go · BSD
Since Go 1.22 the standard multiplexer matches methods and path wildcards: mux.HandleFunc("GET /orders/{id}", h). That removed the main reason most projects reached for a router at all. It has no route groups and no request binding, and for a service with a dozen endpoints you will not miss them.
Strengths
- No dependency to audit, upgrade or outlive
- Every middleware and test helper in Go works with it
- Method and wildcard routing since Go 1.22
Trade-offs
- No route groups, so shared middleware is manual
- No binding or validation helpers
- Error handling is yours to design
Best for: Services with a small, stable set of endpoints, and anyone minimising dependencies.
