Skip constructs a no-op field, which is often useful when handling invalid inputs in other Field constructors.
()
| 41 | // Skip constructs a no-op field, which is often useful when handling invalid |
| 42 | // inputs in other Field constructors. |
| 43 | func Skip() Field { |
| 44 | return Field{Type: zapcore.SkipType} |
| 45 | } |
| 46 | |
| 47 | // nilField returns a field which will marshal explicitly as nil. See motivation |
| 48 | // in https://github.com/uber-go/zap/issues/753 . If we ever make breaking |
no outgoing calls