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
  4e930a84_3d28_9f13_af94_f6e4ca517101["updateRouteTree()"]
  5779b911_d67f_64b6_4e9e_e82714134e58["updateRouteTrees()"]
  5779b911_d67f_64b6_4e9e_e82714134e58 -->|calls| 4e930a84_3d28_9f13_af94_f6e4ca517101
  style 4e930a84_3d28_9f13_af94_f6e4ca517101 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

Called By

Frequently Asked Questions

What does updateRouteTree() do?
updateRouteTree() is a function in the gin codebase.
What calls updateRouteTree()?
updateRouteTree() is called by 1 function(s): updateRouteTrees.

Analyze Your Own Codebase

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

Try Supermodel Free