Skip to content

conflicts with existing wildcard #2005

@divinerapier

Description

@divinerapier
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions