MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddObject

Method AddObject

encode_object.go:62–64  ·  view source on GitHub ↗

AddObject adds an object to be encoded, must be used inside a slice or array encoding (does not encode a key) value must implement MarshalerJSONObject

(v MarshalerJSONObject)

Source from the content-addressed store, hash-verified

60// AddObject adds an object to be encoded, must be used inside a slice or array encoding (does not encode a key)
61// value must implement MarshalerJSONObject
62func (enc *Encoder) AddObject(v MarshalerJSONObject) {
63 enc.Object(v)
64}
65
66// AddObjectOmitEmpty adds an object to be encoded or skips it if IsNil returns true.
67// Must be used inside a slice or array encoding (does not encode a key)

Callers 1

AddInterfaceMethod · 0.95

Calls 1

ObjectMethod · 0.95

Tested by

no test coverage detected