A simple wrapper around the new Go 1.22 muxer. It decorates the net/http muxer with the following:
- Middleware functionality.
- Trailing slash footgun protection.
- Subrouting.
- HTTP methods as Go methods such as
muxer.Post("/hello", helloHandler)
instead ofmuxer.Handle("POST /hello", helloHandler)
.