New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add route naming feature. #1650
Conversation
Interesting Can you check the tests, the last run is not successful |
@ReneWerner87 do you know why parallel tests cause errors? |
Instead of .RouteName, I think .Name would suffice |
Right. I'll change it today |
fixed |
its looking good, can you add some documentation in the readme and doc repository |
What should i add in README? As feature? |
Yes please |
@efectn will it work like func main() {
app := fiber.New()
app.Get("/user",func(c *fiber.Ctx) error {...}).Name("user").Get("/projects",func(c *fiber.Ctx)error {...}).Name("projects")
app.Listen("localhost:8080")
} |
Yeah it will work |
👍 |
Set route name by last created route or group.
Example Use:
Code:
Output: