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

Method closeOpenNamespaces

zapcore/json_encoder.go:437–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435}
436
437func (enc *jsonEncoder) closeOpenNamespaces() {
438 for i := 0; i < enc.openNamespaces; i++ {
439 enc.buf.AppendByte('}')
440 }
441 enc.openNamespaces = 0
442}
443
444func (enc *jsonEncoder) addKey(key string) {
445 enc.addElementSeparator()

Callers 3

AppendObjectMethod · 0.95
EncodeEntryMethod · 0.80
writeContextMethod · 0.80

Calls 1

AppendByteMethod · 0.80

Tested by

no test coverage detected