mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 20:22:20 +08:00
up 2022-11-23
This commit is contained in:
parent
0fd88d12be
commit
83036d4628
@ -152,8 +152,10 @@ func (c *Context) HandlerName() string {
|
|||||||
func (c *Context) HandlerNames() []string {
|
func (c *Context) HandlerNames() []string {
|
||||||
hn := make([]string, 0, len(c.handlers))
|
hn := make([]string, 0, len(c.handlers))
|
||||||
for _, val := range c.handlers {
|
for _, val := range c.handlers {
|
||||||
|
if nil != val {
|
||||||
hn = append(hn, nameOfFunction(val))
|
hn = append(hn, nameOfFunction(val))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return hn
|
return hn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user