MCPcopy
hub / github.com/uber-go/zap / Skip

Function Skip

field.go:43–45  ·  view source on GitHub ↗

Skip constructs a no-op field, which is often useful when handling invalid inputs in other Field constructors.

()

Source from the content-addressed store, hash-verified

41// Skip constructs a no-op field, which is often useful when handling invalid
42// inputs in other Field constructors.
43func 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

Callers 6

convertAttrToFieldFunction · 0.92
HandleMethod · 0.92
WithAttrsMethod · 0.92
TestFieldConstructorsFunction · 0.85
NamedErrorFunction · 0.85
TestErrorConstructorsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestFieldConstructorsFunction · 0.68
TestErrorConstructorsFunction · 0.68