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

Can I use a router like this? #2588

Open
tivizi opened this issue Dec 19, 2020 · 0 comments
Open

Can I use a router like this? #2588

tivizi opened this issue Dec 19, 2020 · 0 comments

Comments

@tivizi
Copy link

tivizi commented Dec 19, 2020

Want

Can I use a router like this:

/pages/archives-{id}.html

and use that parm by :

id := c.Param("id")

This is how I use it at present

/pages/archives-:id

then

id := c.Param("id")[0,strings.Index(c.Param("id"), ".")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant