Dict constructs a field containing the provided key-value pairs. It acts similar to [Object], but with the fields specified as arguments.
(key string, val ...Field)
| 417 | // Dict constructs a field containing the provided key-value pairs. |
| 418 | // It acts similar to [Object], but with the fields specified as arguments. |
| 419 | func Dict(key string, val ...Field) Field { |
| 420 | return dictField(key, val) |
| 421 | } |
| 422 | |
| 423 | // We need a function with the signature (string, T) for zap.Any. |
| 424 | func dictField(key string, val []Field) Field { |