Dur adds the field key with d divided by unit and stored as a float.
(key string, d time.Duration)
| 422 | |
| 423 | // Dur adds the field key with d divided by unit and stored as a float. |
| 424 | func (c Context) Dur(key string, d time.Duration) Context { |
| 425 | c.l.context = enc.AppendDuration(enc.AppendKey(c.l.context, key), d, DurationFieldUnit, DurationFieldFormat, DurationFieldInteger, FloatingPointPrecision) |
| 426 | return c |
| 427 | } |
| 428 | |
| 429 | // Durs adds the field key with d divided by unit and stored as a float. |
| 430 | func (c Context) Durs(key string, d []time.Duration) Context { |
nothing calls this directly
no test coverage detected