nilField returns a field which will marshal explicitly as nil. See motivation in https://github.com/uber-go/zap/issues/753 . If we ever make breaking changes and add zapcore.NilType and zapcore.ObjectEncoder.AddNil, the implementation here should be changed to reflect that.
(key string)
| 49 | // changes and add zapcore.NilType and zapcore.ObjectEncoder.AddNil, the |
| 50 | // implementation here should be changed to reflect that. |
| 51 | func nilField(key string) Field { return Reflect(key, nil) } |
| 52 | |
| 53 | // Binary constructs a field that carries an opaque binary blob. |
| 54 | // |