MCPcopy
hub / github.com/protocolbuffers/protobuf-go / EndMessage

Method EndMessage

internal/encoding/text/encode.go:91–94  ·  view source on GitHub ↗

EndMessage writes out the '}' or '>' symbol.

()

Source from the content-addressed store, hash-verified

89
90// EndMessage writes out the '}' or '>' symbol.
91func (e *Encoder) EndMessage() {
92 e.prepareNext(messageClose)
93 e.out = append(e.out, e.delims[1])
94}
95
96// WriteName writes out the field name and the separator ':'.
97func (e *Encoder) WriteName(s string) {

Callers 4

marshalMessageMethod · 0.80
marshalMapMethod · 0.80
marshalUnknownMethod · 0.80
TestEncoderFunction · 0.80

Calls 1

prepareNextMethod · 0.95

Tested by 1

TestEncoderFunction · 0.64