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

Method EndArray

internal/encoding/json/encode.go:221–224  ·  view source on GitHub ↗

EndArray writes out the ']' symbol.

()

Source from the content-addressed store, hash-verified

219
220// EndArray writes out the ']' symbol.
221func (e *Encoder) EndArray() {
222 e.prepareNext(arrayClose)
223 e.out = append(e.out, ']')
224}
225
226// prepareNext adds possible comma and indentation for the next value based
227// on last type and indent option. It also updates lastKind to next.

Callers 2

marshalListMethod · 0.80
TestEncoderFunction · 0.80

Calls 1

prepareNextMethod · 0.95

Tested by 1

TestEncoderFunction · 0.64