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

Method Times

context.go:418–421  ·  view source on GitHub ↗

Times adds the field key with t formatted as string using zerolog.TimeFieldFormat.

(key string, t []time.Time)

Source from the content-addressed store, hash-verified

416
417// Times adds the field key with t formatted as string using zerolog.TimeFieldFormat.
418func (c Context) Times(key string, t []time.Time) Context {
419 c.l.context = enc.AppendTimes(enc.AppendKey(c.l.context, key), t, TimeFieldFormat)
420 return c
421}
422
423// Dur adds the field key with d divided by unit and stored as a float.
424func (c Context) Dur(key string, d time.Duration) Context {

Callers

nothing calls this directly

Calls 2

AppendTimesMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected