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

Function Inline

field.go:410–415  ·  view source on GitHub ↗

Inline constructs a Field that is similar to Object, but it will add the elements of the provided ObjectMarshaler to the current namespace.

(val zapcore.ObjectMarshaler)

Source from the content-addressed store, hash-verified

408// will add the elements of the provided ObjectMarshaler to the
409// current namespace.
410func Inline(val zapcore.ObjectMarshaler) Field {
411 return zapcore.Field{
412 Type: zapcore.InlineMarshalerType,
413 Interface: val,
414 }
415}
416
417// Dict constructs a field containing the provided key-value pairs.
418// It acts similar to [Object], but with the fields specified as arguments.

Callers 4

MarshalLogObjectMethod · 0.92
ExampleObjectFunction · 0.92
convertAttrToFieldFunction · 0.92
TestFieldConstructorsFunction · 0.85

Calls

no outgoing calls

Tested by 3

MarshalLogObjectMethod · 0.74
ExampleObjectFunction · 0.74
TestFieldConstructorsFunction · 0.68