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

Method OpenNamespace

zapcore/json_encoder.go:189–193  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

187}
188
189func (enc *jsonEncoder) OpenNamespace(key string) {
190 enc.addKey(key)
191 enc.buf.AppendByte('{')
192 enc.openNamespaces++
193}
194
195func (enc *jsonEncoder) AddString(key, val string) {
196 enc.addKey(key)

Callers

nothing calls this directly

Calls 2

addKeyMethod · 0.95
AppendByteMethod · 0.80

Tested by

no test coverage detected