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

Method AddObject

zapcore/json_encoder.go:105–108  ·  view source on GitHub ↗
(key string, obj ObjectMarshaler)

Source from the content-addressed store, hash-verified

103}
104
105func (enc *jsonEncoder) AddObject(key string, obj ObjectMarshaler) error {
106 enc.addKey(key)
107 return enc.AppendObject(obj)
108}
109
110func (enc *jsonEncoder) AddBinary(key string, val []byte) {
111 enc.AddString(key, base64.StdEncoding.EncodeToString(val))

Callers

nothing calls this directly

Calls 2

addKeyMethod · 0.95
AppendObjectMethod · 0.95

Tested by

no test coverage detected