debugPrintRoute() — gin Function Reference
Architecture documentation for the debugPrintRoute() function in debug.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 93c33259_c76f_4486_7d95_3b092f3c778b["debugPrintRoute()"] ce2cf8e3_420b_e598_9442_8f932bc5cd59["debug.go"] 93c33259_c76f_4486_7d95_3b092f3c778b -->|defined in| ce2cf8e3_420b_e598_9442_8f932bc5cd59 b1f16d01_18e5_9b42_a392_9970201fd645["IsDebugging()"] 93c33259_c76f_4486_7d95_3b092f3c778b -->|calls| b1f16d01_18e5_9b42_a392_9970201fd645 11d01069_a77e_b36b_0898_4c80596b3dbe["debugPrint()"] 93c33259_c76f_4486_7d95_3b092f3c778b -->|calls| 11d01069_a77e_b36b_0898_4c80596b3dbe style 93c33259_c76f_4486_7d95_3b092f3c778b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug.go lines 32–42
func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
if IsDebugging() {
nuHandlers := len(handlers)
handlerName := nameOfFunction(handlers.Last())
if DebugPrintRouteFunc == nil {
debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
} else {
DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does debugPrintRoute() do?
debugPrintRoute() is a function in the gin codebase, defined in debug.go.
Where is debugPrintRoute() defined?
debugPrintRoute() is defined in debug.go at line 32.
What does debugPrintRoute() call?
debugPrintRoute() calls 2 function(s): IsDebugging, debugPrint.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free