Text returns a proto text formatted string of m.
(m Message)
| 41 | |
| 42 | // Text returns a proto text formatted string of m. |
| 43 | func (tm *TextMarshaler) Text(m Message) string { |
| 44 | b, _ := tm.marshal(m) |
| 45 | return string(b) |
| 46 | } |
| 47 | |
| 48 | func (tm *TextMarshaler) marshal(m Message) ([]byte, error) { |
| 49 | mr := MessageReflect(m) |