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

Method MarshalJSONArray

gojay/codegen/test/basic_struct/encoding.go:43–47  ·  view source on GitHub ↗
(enc *gojay.Encoder)

Source from the content-addressed store, hash-verified

41}
42
43func (s SubMessages) MarshalJSONArray(enc *gojay.Encoder) {
44 for i := range s {
45 enc.Object(&s[i])
46 }
47}
48
49func (s SubMessages) IsNil() bool {
50 return len(s) == 0

Callers

nothing calls this directly

Calls 1

ObjectMethod · 0.45

Tested by

no test coverage detected