Adds comments

This commit is contained in:
Manu Mtz-Almeida
2015-07-02 18:42:33 +02:00
parent 4cc2de6207
commit a20984c2bc
3 changed files with 40 additions and 25 deletions

4
gin.go
View File

@ -209,8 +209,8 @@ func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo {
Handler: nameOfFunction(root.handlers.Last()),
})
}
for _, node := range root.children {
routes = iterate(path, method, routes, node)
for _, child := range root.children {
routes = iterate(path, method, routes, child)
}
return routes
}