DictObject constructs a [zapcore.ObjectMarshaler] with the given list of fields. The resulting object marshaler can be used as input to [Object], [Objects], or any other functions that expect an object marshaler.
(val ...Field)
| 438 | // The resulting object marshaler can be used as input to [Object], [Objects], or |
| 439 | // any other functions that expect an object marshaler. |
| 440 | func DictObject(val ...Field) zapcore.ObjectMarshaler { |
| 441 | return dictObject(val) |
| 442 | } |
| 443 | |
| 444 | // We discovered an issue where zap.Any can cause a performance degradation |
| 445 | // when used in new goroutines. |