| 30 | var DebugPrintFunc func(format string, values ...any) |
| 31 | |
| 32 | func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) { |
| 33 | if IsDebugging() { |
| 34 | nuHandlers := len(handlers) |
| 35 | handlerName := nameOfFunction(handlers.Last()) |
| 36 | if DebugPrintRouteFunc == nil { |
| 37 | debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers) |
| 38 | } else { |
| 39 | DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers) |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func debugPrintLoadTemplate(tmpl *template.Template) { |
| 45 | if IsDebugging() { |