()
| 30 | } |
| 31 | |
| 32 | func (e *ParseError) Error() string { |
| 33 | if wrapTextUnmarshalV2 { |
| 34 | return e.Message |
| 35 | } |
| 36 | if e.Line == 1 { |
| 37 | return fmt.Sprintf("line 1.%d: %v", e.Offset, e.Message) |
| 38 | } |
| 39 | return fmt.Sprintf("line %d: %v", e.Line, e.Message) |
| 40 | } |
| 41 | |
| 42 | // UnmarshalText parses a proto text formatted string into m. |
| 43 | func UnmarshalText(s string, m Message) error { |
no outgoing calls