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

Struct TextMarshaler

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

TextMarshaler is a configurable text format marshaler.

Source from the content-addressed store, hash-verified

24
25// TextMarshaler is a configurable text format marshaler.
26type TextMarshaler struct {
27 Compact bool // use compact text format (one line)
28 ExpandAny bool // expand google.protobuf.Any messages of known types
29}
30
31// Marshal writes the proto text format of m to w.
32func (tm *TextMarshaler) Marshal(w io.Writer, m Message) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected