MCPcopy
hub / github.com/go-git/go-git / Print

Method Print

utils/trace/trace.go:44–48  ·  view source on GitHub ↗

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

(args ...interface{})

Source from the content-addressed store, hash-verified

42
43// Print prints the given message only if the target is enabled.
44func (t Target) Print(args ...interface{}) {
45 if int32(t)&current.Load() != 0 {
46 logger.Output(2, fmt.Sprint(args...)) // nolint: errcheck
47 }
48}
49
50// Printf prints the given message only if the target is enabled.
51func (t Target) Printf(format string, args ...interface{}) {

Callers 10

TestEmptyFunction · 0.80
TestOneTargetFunction · 0.80
TestMultipleTargetsFunction · 0.80
BenchmarkDisabledTargetFunction · 0.80
BenchmarkEnabledTargetFunction · 0.80
mainFunction · 0.80
fetchOriginFunction · 0.80
pushTagsFunction · 0.80
FlushMethod · 0.80

Calls 1

LoadMethod · 0.65

Tested by 6

TestEmptyFunction · 0.64
TestOneTargetFunction · 0.64
TestMultipleTargetsFunction · 0.64
BenchmarkDisabledTargetFunction · 0.64
BenchmarkEnabledTargetFunction · 0.64