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

Method AddDuration

zapcore/encoder.go:375–375  ·  zapcore/encoder.go::ObjectEncoder.AddDuration
(key string, value time.Duration)

Source from the content-addressed store, hash-verified

373 AddComplex128(key string, value complex128)
374 AddComplex64(key string, value complex64)
375 AddDuration(key string, value time.Duration)
376 AddFloat64(key string, value float64)
377 AddFloat32(key string, value float32)
378 AddInt(key string, value int)

Callers 4

TestMapObjectEncoderAddFunction · 0.65
TestEncoderConfigurationFunction · 0.65
AddToMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
MapObjectEncoderzapcore/memory_encoder.go

Calls

no outgoing calls

Tested by 3

TestMapObjectEncoderAddFunction · 0.52
TestEncoderConfigurationFunction · 0.52