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

conflicts with existing wildcard #2005

Closed
divinerapier opened this issue Jul 30, 2019 · 1 comment · Fixed by #2663
Closed

conflicts with existing wildcard #2005

divinerapier opened this issue Jul 30, 2019 · 1 comment · Fixed by #2663

Comments

@divinerapier
Copy link

  • go version:
    $ go version
    go version go1.12.7 darwin/amd64
  • gin version (or commit ref):
    v1.4.0
  • operating system:

Description

panic: ':name' in new path '/reservations/:name/inspect' conflicts with existing wildcard ':id' in existing prefix '/reservations/:id'

Screenshots

routers like below will panic
image

but this is ok
image

I wonder the reason.

Thanks.

@thinkerou
Copy link
Member

please search and read old issue, this is not a bug. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants