Encode encodes the ErrorLine into a packet line.
(w io.Writer)
| 30 | |
| 31 | // Encode encodes the ErrorLine into a packet line. |
| 32 | func (e *ErrorLine) Encode(w io.Writer) error { |
| 33 | p := NewEncoder(w) |
| 34 | return p.Encodef("%s%s\n", string(errPrefix), e.Text) |
| 35 | } |
| 36 | |
| 37 | // Decode decodes a packet line into an ErrorLine. |
| 38 | func (e *ErrorLine) Decode(r io.Reader) error { |