MCPcopy
hub / github.com/gin-gonic/gin / debugPrintLoadTemplate

Function debugPrintLoadTemplate

debug.go:44–54  ·  view source on GitHub ↗
(tmpl *template.Template)

Source from the content-addressed store, hash-verified

42}
43
44func debugPrintLoadTemplate(tmpl *template.Template) {
45 if IsDebugging() {
46 var buf strings.Builder
47 for _, tmpl := range tmpl.Templates() {
48 buf.WriteString("\t- ")
49 buf.WriteString(tmpl.Name())
50 buf.WriteString("\n")
51 }
52 debugPrint("Loaded HTML Templates (%d): \n%s\n", len(tmpl.Templates()), buf.String())
53 }
54}
55
56func debugPrint(format string, values ...any) {
57 if !IsDebugging() {

Callers 2

LoadHTMLGlobMethod · 0.85

Calls 5

IsDebuggingFunction · 0.85
debugPrintFunction · 0.85
WriteStringMethod · 0.65
NameMethod · 0.65
StringMethod · 0.65

Tested by 1