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

Method AddBool

zapcore/encoder.go:372–372  ·  zapcore/encoder.go::ObjectEncoder.AddBool

for UTF-8 encoded bytes

(key string, value bool)

Source from the content-addressed store, hash-verified

370 AddBinary(key string, value []byte) // for arbitrary bytes
371 AddByteString(key string, value []byte) // for UTF-8 encoded bytes
372 AddBool(key string, value bool)
373 AddComplex128(key string, value complex128)
374 AddComplex64(key string, value complex64)
375 AddDuration(key string, value time.Duration)

Callers 5

TestMapObjectEncoderAddFunction · 0.65
BenchmarkZapJSONFunction · 0.65
BenchmarkZapConsoleFunction · 0.65
AddToMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
MapObjectEncoderzapcore/memory_encoder.go

Calls

no outgoing calls

Tested by 4

TestMapObjectEncoderAddFunction · 0.52
BenchmarkZapJSONFunction · 0.52
BenchmarkZapConsoleFunction · 0.52