MCPcopy Index your code
hub / github.com/go-git/go-git / Printf

Method Printf

utils/trace/trace.go:51–55  ·  view source on GitHub ↗

Printf prints the given message only if the target is enabled.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

49
50// Printf prints the given message only if the target is enabled.
51func (t Target) Printf(format string, args ...interface{}) {
52 if int32(t)&current.Load() != 0 {
53 logger.Output(2, fmt.Sprintf(format, args...)) // nolint: errcheck
54 }
55}

Callers 15

TestPrintfFunction · 0.80
CheckIfErrorFunction · 0.80
InfoFunction · 0.80
WarningFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
printErrFunction · 0.80
printMsgFunction · 0.80
printCommitsFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

LoadMethod · 0.65

Tested by 3

TestPrintfFunction · 0.64
setupGPGFunction · 0.64