()
| 349 | } |
| 350 | |
| 351 | func ExampleEvent_Dur() { |
| 352 | d := 10 * time.Second |
| 353 | |
| 354 | log := zerolog.New(os.Stdout) |
| 355 | |
| 356 | log.Log(). |
| 357 | Str("foo", "bar"). |
| 358 | Dur("dur", d). |
| 359 | Msg("hello world") |
| 360 | |
| 361 | // Output: {"foo":"bar","dur":10000,"message":"hello world"} |
| 362 | } |
| 363 | |
| 364 | func ExampleEvent_Durs() { |
| 365 | d := []time.Duration{ |