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

Method MarshalJSONArray

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

Source from the content-addressed store, hash-verified

10type TestEncodingArrStrings []string
11
12func (t TestEncodingArrStrings) MarshalJSONArray(enc *Encoder) {
13 for _, e := range t {
14 enc.AddString(e)
15 }
16}
17func (t TestEncodingArrStrings) IsNil() bool {
18 return len(t) == 0
19}

Callers

nothing calls this directly

Calls 1

AddStringMethod · 0.45

Tested by

no test coverage detected