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

Method MarshalJSONArray

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

Source from the content-addressed store, hash-verified

190type TestEncodingStringOmitEmpty []string
191
192func (t TestEncodingStringOmitEmpty) MarshalJSONArray(enc *Encoder) {
193 for _, e := range t {
194 enc.AddStringOmitEmpty(e)
195 }
196}
197func (t TestEncodingStringOmitEmpty) IsNil() bool {
198 return t == nil
199}

Callers

nothing calls this directly

Calls 1

AddStringOmitEmptyMethod · 0.80

Tested by

no test coverage detected