mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
Update tree.go
This commit is contained in:
parent
3a6f18f32f
commit
a9369e78ed
10
tree.go
10
tree.go
@ -48,6 +48,16 @@ func (ps Params) ByName(name string) (va string) {
|
||||
return
|
||||
}
|
||||
|
||||
//IsEmpty check the value of the param
|
||||
func (ps Params) IsEmpty() bool {
|
||||
for _, entry := range ps {
|
||||
if len(entry.Value) < 1 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
type methodTree struct {
|
||||
method string
|
||||
root *node
|
||||
|
Loading…
x
Reference in New Issue
Block a user