MCPcopy Create free account
hub / github.com/protocolbuffers/protobuf-go / StartArray

Method StartArray

internal/encoding/json/encode.go:215–218  ·  view source on GitHub ↗

StartArray writes out the '[' symbol.

()

Source from the content-addressed store, hash-verified

213
214// StartArray writes out the '[' symbol.
215func (e *Encoder) StartArray() {
216 e.prepareNext(arrayOpen)
217 e.out = append(e.out, '[')
218}
219
220// EndArray writes out the ']' symbol.
221func (e *Encoder) EndArray() {

Callers 2

marshalListMethod · 0.80
TestEncoderFunction · 0.80

Calls 1

prepareNextMethod · 0.95

Tested by 1

TestEncoderFunction · 0.64