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

Method MarshalJSONArray

encode_array_test.go:23–27  ·  view source on GitHub ↗
(enc *Encoder)

Source from the content-addressed store, hash-verified

21type TestEncodingArr []*TestEncoding
22
23func (t TestEncodingArr) MarshalJSONArray(enc *Encoder) {
24 for _, e := range t {
25 enc.AddObject(e)
26 }
27}
28func (t TestEncodingArr) IsNil() bool {
29 return t == nil
30}

Callers

nothing calls this directly

Calls 1

AddObjectMethod · 0.45

Tested by

no test coverage detected