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
MIGRATED - See upstream comments
From Original PR: @HiveTraum gorilla#675 and gorilla#598 This feature introduces ability to register aliases for some often used regular expressions.
For example path as this:
/{category:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}}/{product:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}}
can be transformed into this
/{category:uuid}/{product:uuid}
You need just use register it
router := NewRouter() router.RegisterPattern("uuid", "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}") router.Path("/{category:uuid}") router.Path("/{product:uuid}") router.Path("/{order:uuid}") router.Path("/{user:uuid}")
The text was updated successfully, but these errors were encountered:
tebruno99
When branches are created from issues, their pull requests are automatically linked.
MIGRATED - See upstream comments
From Original PR: @HiveTraum gorilla#675 and gorilla#598
This feature introduces ability to register aliases for some often used regular expressions.
For example path as this:
can be transformed into this
You need just use register it
The text was updated successfully, but these errors were encountered: