Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
42
func
(c Color) Add(s string) string {
43
return
fmt.Sprintf(
"\x1b[%dm%s\x1b[0m"
, uint8(c), s)
44
}
Callers
15
makeSamplerCountingHook
Function · 0.45
assertCanBeReused
Function · 0.45
TestGlobalsConcurrentUse
Function · 0.45
runConcurrently
Function · 0.45
BenchmarkAny
Function · 0.45
makeCountingHook
Function · 0.45
FuzzAtomicLevelServeHTTP
Function · 0.45
TestEquals
Function · 0.45
TestPutNilEntry
Function · 0.45
Write
Method · 0.45
TestSamplerConcurrent
Function · 0.45
TestSamplerRaces
Function · 0.45
Calls
no outgoing calls
Tested by
15
makeSamplerCountingHook
Function · 0.36
assertCanBeReused
Function · 0.36
TestGlobalsConcurrentUse
Function · 0.36
runConcurrently
Function · 0.36
BenchmarkAny
Function · 0.36
makeCountingHook
Function · 0.36
FuzzAtomicLevelServeHTTP
Function · 0.36
TestEquals
Function · 0.36
TestPutNilEntry
Function · 0.36
Write
Method · 0.36
TestSamplerConcurrent
Function · 0.36
TestSamplerRaces
Function · 0.36