MCPcopy
hub / github.com/uber-go/zap / Add

Method Add

internal/color/color.go:42–44  ·  view source on GitHub ↗

Add adds the coloring to the given string.

(s string)

Source from the content-addressed store, hash-verified

40
41// Add adds the coloring to the given string.
42func (c Color) Add(s string) string {
43 return fmt.Sprintf("\x1b[%dm%s\x1b[0m", uint8(c), s)
44}

Callers 15

makeSamplerCountingHookFunction · 0.45
assertCanBeReusedFunction · 0.45
TestGlobalsConcurrentUseFunction · 0.45
runConcurrentlyFunction · 0.45
BenchmarkAnyFunction · 0.45
makeCountingHookFunction · 0.45
FuzzAtomicLevelServeHTTPFunction · 0.45
TestEqualsFunction · 0.45
TestPutNilEntryFunction · 0.45
WriteMethod · 0.45
TestSamplerConcurrentFunction · 0.45
TestSamplerRacesFunction · 0.45

Calls

no outgoing calls

Tested by 15

makeSamplerCountingHookFunction · 0.36
assertCanBeReusedFunction · 0.36
TestGlobalsConcurrentUseFunction · 0.36
runConcurrentlyFunction · 0.36
BenchmarkAnyFunction · 0.36
makeCountingHookFunction · 0.36
FuzzAtomicLevelServeHTTPFunction · 0.36
TestEqualsFunction · 0.36
TestPutNilEntryFunction · 0.36
WriteMethod · 0.36
TestSamplerConcurrentFunction · 0.36
TestSamplerRacesFunction · 0.36