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

Function debugPrint

debug.go:56–70  ·  view source on GitHub ↗
(format string, values ...any)

Source from the content-addressed store, hash-verified

54}
55
56func debugPrint(format string, values ...any) {
57 if !IsDebugging() {
58 return
59 }
60
61 if DebugPrintFunc != nil {
62 DebugPrintFunc(format, values...)
63 return
64 }
65
66 if !strings.HasSuffix(format, "\n") {
67 format += "\n"
68 }
69 fmt.Fprintf(DefaultWriter, "[GIN-debug] "+format, values...)
70}
71
72func getMinVer(v string) (uint64, error) {
73 first := strings.IndexByte(v, '.')

Callers 15

debugPrintRouteFunction · 0.85
debugPrintLoadTemplateFunction · 0.85
debugPrintWARNINGDefaultFunction · 0.85
debugPrintWARNINGNewFunction · 0.85
resolveAddressFunction · 0.85
RunMethod · 0.85
RunTLSMethod · 0.85
RunUnixMethod · 0.85
RunFdMethod · 0.85
RunQUICMethod · 0.85
RunListenerMethod · 0.85

Calls 1

IsDebuggingFunction · 0.85

Tested by 2

TestDebugPrintFunction · 0.68
TestDebugPrintFuncFunction · 0.68