()
| 319 | } |
| 320 | |
| 321 | func ExampleEvent_EmbedObject() { |
| 322 | log := zerolog.New(os.Stdout) |
| 323 | |
| 324 | price := Price{val: 6449, prec: 2, unit: "$"} |
| 325 | |
| 326 | log.Log(). |
| 327 | Str("foo", "bar"). |
| 328 | EmbedObject(price). |
| 329 | Msg("hello world") |
| 330 | |
| 331 | // Output: {"foo":"bar","price":"$64.49","message":"hello world"} |
| 332 | } |
| 333 | |
| 334 | func ExampleEvent_Interface() { |
| 335 | log := zerolog.New(os.Stdout) |
nothing calls this directly
no test coverage detected