You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/static/*file is already a catch-all wildcard. You are trying to initialize a path /static/ (notice the trailing slash). This path is already a type of catch-all wildcard with no child paths, which leads to the conflict.
WIll open a PR by today EOD to fix this.
Router tree bug
when add a catch-all router, there may be an error reported:
panic: runtime error: index out of range [0] with length 0
How to reproduce
Source code
tree.go
this line
pathSeg := strings.SplitN(n.children[0].path, "/", 2)[0]
actually, n node do not have any children.
Environment
The text was updated successfully, but these errors were encountered: