MCPcopy
hub / github.com/rs/zerolog / Dur

Method Dur

array.go:232–235  ·  view source on GitHub ↗

Dur appends d to the array.

(d time.Duration)

Source from the content-addressed store, hash-verified

230
231// Dur appends d to the array.
232func (a *Array) Dur(d time.Duration) *Array {
233 a.buf = enc.AppendDuration(enc.AppendArrayDelim(a.buf), d, DurationFieldUnit, DurationFieldFormat, DurationFieldInteger, FloatingPointPrecision)
234 return a
235}
236
237// Interface appends i marshaled using reflection.
238func (a *Array) Interface(i interface{}) *Array {

Callers

nothing calls this directly

Calls 2

AppendDurationMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected