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

Method Clone

zapcore/encoder.go:460–460  ·  view source on GitHub ↗

Clone copies the encoder, ensuring that adding fields to the copy doesn't affect the original.

()

Source from the content-addressed store, hash-verified

458 // Clone copies the encoder, ensuring that adding fields to the copy doesn't
459 // affect the original.
460 Clone() Encoder
461
462 // EncodeEntry encodes an entry and fields, along with any accumulated
463 // context, into a byte buffer and returns it. Any fields that are empty,

Callers 5

BenchmarkBoolsReflectFunction · 0.65
CloneMethod · 0.65
writeContextMethod · 0.65
cloneMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
consoleEncoderzapcore/console_encoder.go

Calls

no outgoing calls

Tested by 2

BenchmarkBoolsReflectFunction · 0.52