A middleware that works well (but not exclusively) with rkusa/web and provides high performance HTTP request routing using httptreemux.
routes := router.New()
routes.GET("/users/:id", func(rw http.ResponseWriter, r *http.Request) {
id := router.Param(r, "id")
// ...
})
app.Use(routes.Middleware())