Open itcuihao opened 3 years ago
uint8 is unsigned integer 8 bit. 8 bits can represent 0 to 255(2**8-1)
Does it mean that the length of path cannot exceed 255? Why is it so set?
If I am reading the function correctly, it's counting the named params (:name
, :id
in the defined path) and not the path length. Check the function usage to understand the possible limtations around it.
there isn't 255 anymore 😂
https://github.com/gin-gonic/gin/blob/b01605bb5b43dbf33781970af5ad6633e5549fd1/tree_test.go#L87-94
Description
How to reproduce