ReadLine reads a single line from r, eliding the final \n or \r\n from the returned string.
()
| 72 | // ReadLine reads a single line from r, |
| 73 | // eliding the final \n or \r\n from the returned string. |
| 74 | func (r *textprotoReader) ReadLine() (string, error) { |
| 75 | line, err := r.readLineSlice(-1) |
| 76 | return string(line), err |
| 77 | } |
| 78 | |
| 79 | // readLineSlice reads a single line from r, |
| 80 | // up to lim bytes long (or unlimited if lim is less than 0), |
no test coverage detected