MCPcopy
hub / github.com/golang/protobuf / write

Method write

jsonpb/encode.go:127–129  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

125}
126
127func (w *jsonWriter) write(s string) {
128 w.buf = append(w.buf, s...)
129}
130
131func (w *jsonWriter) marshalMessage(m protoreflect.Message, indent, typeURL string) error {
132 if jsm, ok := proto.MessageV1(m.Interface()).(JSONPBMarshaler); ok {

Callers 7

marshalMessageMethod · 0.95
writeCommaMethod · 0.95
marshalAnyMethod · 0.95
marshalTypeURLMethod · 0.95
marshalFieldMethod · 0.95
marshalValueMethod · 0.95
marshalSingularValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected