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

Method truncate

zapcore/json_encoder.go:433–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431}
432
433func (enc *jsonEncoder) truncate() {
434 enc.buf.Reset()
435}
436
437func (enc *jsonEncoder) closeOpenNamespaces() {
438 for i := 0; i < enc.openNamespaces; i++ {

Callers 2

TestJSONEscapingFunction · 0.95
assertOutputFunction · 0.80

Calls 1

ResetMethod · 0.80

Tested by 2

TestJSONEscapingFunction · 0.76
assertOutputFunction · 0.64