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

Method writeComma

jsonpb/encode.go:306–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304}
305
306func (w *jsonWriter) writeComma() {
307 if w.Indent != "" {
308 w.write(",\n")
309 } else {
310 w.write(",")
311 }
312}
313
314func (w *jsonWriter) marshalAny(m protoreflect.Message, indent string) error {
315 // "If the Any contains a value that has a special JSON mapping,

Callers 2

marshalMessageMethod · 0.95
marshalAnyMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected