mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +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
|
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 {
|
type methodTree struct {
|
||||||
method string
|
method string
|
||||||
root *node
|
root *node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user