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

Method AddDuration

zapcore/json_encoder.go:134–137  ·  view source on GitHub ↗
(key string, val time.Duration)

Source from the content-addressed store, hash-verified

132}
133
134func (enc *jsonEncoder) AddDuration(key string, val time.Duration) {
135 enc.addKey(key)
136 enc.AppendDuration(val)
137}
138
139func (enc *jsonEncoder) AddFloat64(key string, val float64) {
140 enc.addKey(key)

Callers

nothing calls this directly

Calls 2

addKeyMethod · 0.95
AppendDurationMethod · 0.95

Tested by

no test coverage detected