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

Function CompactText

proto/text_encode.go:103–103  ·  view source on GitHub ↗

CompactText writes the compact proto text format of m to w.

(w io.Writer, m Message)

Source from the content-addressed store, hash-verified

101
102// CompactText writes the compact proto text format of m to w.
103func CompactText(w io.Writer, m Message) error { return compactTextMarshaler.Marshal(w, m) }
104
105// CompactTextString returns a compact proto text formatted string of m.
106func CompactTextString(m Message) string { return compactTextMarshaler.Text(m) }

Callers

nothing calls this directly

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected