Skip to content
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

Feature request: create url from route #167

Open
snytkine opened this issue Dec 8, 2016 · 0 comments
Open

Feature request: create url from route #167

snytkine opened this issue Dec 8, 2016 · 0 comments
Labels
Milestone

Comments

@snytkine
Copy link

snytkine commented Dec 8, 2016

For example if a route is router.GET('/items/:offset/:limit' ListItems)
The calling router.url(routeName, {offset:100, limit: 50}) would generate a url /items/100/50
this would be very helpful for something like paginantion and for many other features.

@julienschmidt julienschmidt added this to the v2 milestone Sep 29, 2019
similark pushed a commit to similarweb/httprouter that referenced this issue May 9, 2023
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>

Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants