We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Router.Name()
NewRoute
Describe your problem
Most of the route's functions are exposed on the router for creating a new router. Unfortunately Name is not exposed as such.
Name
For consistency, I believe it should be exposed.
Paste a minimal, runnable, reproduction of your issue below
r := mux.NewRouter() // works r.Handler("/path", httpHandler).Name("route name").Method("GET") // works r.Method("GET").Handler("/path2", httpHandler).Name("route2 name") // is not supported r.Name("route name").Method("GET").Handler("/path2", httpHandler)
The text was updated successfully, but these errors were encountered:
Working on a PR right now.
Sorry, something went wrong.
No branches or pull requests
Describe your problem
Most of the route's functions are exposed on the router for creating a new router. Unfortunately
Name
is not exposed as such.For consistency, I believe it should be exposed.
Paste a minimal, runnable, reproduction of your issue below
The text was updated successfully, but these errors were encountered: