bunrouter
bunrouter copied to clipboard
Are there plans to add named routes (aka reversing routes)?
💡 The feature or bug you are proposing
gorilla/mux supports named routes and these are very handy for url building, reporting, etc. Are there any plans to introduce these in bunrouter?
🚀 The expected result
How this could look like:
r.Name("user").GET("/users/:id", createUserHandler)
// returns a url.URL (or simply a string)
u := r.URLTo("user", "id", "1234")