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? 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
For example, we want to rewrite /forum-{:id}.html to match the id from the part of the url.
i don't know how to do it.
:id was the named params.
if id = 4
request may like /forum-4.html
For reference: Spring framework has PathPattern very powerful
PathPattern Implementation https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
Test cases https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.java
The text was updated successfully, but these errors were encountered:
you can use /forum-:id, but not through ps.ByName("id") get id, you can self parse id, like
id, err := strconv.Atoi("/forml-4"[len("/forml-"):])
Sorry, something went wrong.
No branches or pull requests
For example, we want to rewrite /forum-{:id}.html to match the id from the part of the url.
i don't know how to do it.
:id was the named params.
if id = 4
request may like /forum-4.html
For reference: Spring framework has PathPattern very powerful
PathPattern Implementation
https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
Test cases
https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.java
The text was updated successfully, but these errors were encountered: