MarshalText writes the proto text format of m to w.
(w io.Writer, m Message)
| 95 | |
| 96 | // MarshalText writes the proto text format of m to w. |
| 97 | func MarshalText(w io.Writer, m Message) error { return defaultTextMarshaler.Marshal(w, m) } |
| 98 | |
| 99 | // MarshalTextString returns a proto text formatted string of m. |
| 100 | func MarshalTextString(m Message) string { return defaultTextMarshaler.Text(m) } |