iterate() — gin Function Reference
Architecture documentation for the iterate() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 6612e7f7_25cb_5824_240d_3f0b41b2c046["iterate()"] ae266b59_fc11_1d7e_8f3d_6f950c549bbb["Routes()"] ae266b59_fc11_1d7e_8f3d_6f950c549bbb -->|calls| 6612e7f7_25cb_5824_240d_3f0b41b2c046 2197d913_7aed_83f3_ccaa_1caed9f7bac2["Last()"] 6612e7f7_25cb_5824_240d_3f0b41b2c046 -->|calls| 2197d913_7aed_83f3_ccaa_1caed9f7bac2 style 6612e7f7_25cb_5824_240d_3f0b41b2c046 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 397–412
func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo {
path += root.path
if len(root.handlers) > 0 {
handlerFunc := root.handlers.Last()
routes = append(routes, RouteInfo{
Method: method,
Path: path,
Handler: nameOfFunction(handlerFunc),
HandlerFunc: handlerFunc,
})
}
for _, child := range root.children {
routes = iterate(path, method, routes, child)
}
return routes
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does iterate() do?
iterate() is a function in the gin codebase.
What does iterate() call?
iterate() calls 1 function(s): Last.
What calls iterate()?
iterate() is called by 1 function(s): Routes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free