Home / Function/ updateRouteTree() — gin Function Reference

updateRouteTree() — gin Function Reference

Architecture documentation for the updateRouteTree() function in gin.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  3fa9bb7c_73c5_752e_968f_8dbdc94f8f07["updateRouteTree()"]
  22068897_9e6c_d28e_6b96_439ffa67fe6e["gin.go"]
  3fa9bb7c_73c5_752e_968f_8dbdc94f8f07 -->|defined in| 22068897_9e6c_d28e_6b96_439ffa67fe6e
  style 3fa9bb7c_73c5_752e_968f_8dbdc94f8f07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

gin.go lines 504–514

func updateRouteTree(n *node) {
	n.path = strings.ReplaceAll(n.path, escapedColon, colon)
	n.fullPath = strings.ReplaceAll(n.fullPath, escapedColon, colon)
	n.indices = strings.ReplaceAll(n.indices, backslash, colon)
	if n.children == nil {
		return
	}
	for _, child := range n.children {
		updateRouteTree(child)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does updateRouteTree() do?
updateRouteTree() is a function in the gin codebase, defined in gin.go.
Where is updateRouteTree() defined?
updateRouteTree() is defined in gin.go at line 504.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free