DiscardNext read and discard the data represented by the next line.
()
| 720 | |
| 721 | // DiscardNext read and discard the data represented by the next line. |
| 722 | func (r *Reader) DiscardNext() error { |
| 723 | line, err := r.readLine() |
| 724 | if err != nil { |
| 725 | return err |
| 726 | } |
| 727 | return r.Discard(line) |
| 728 | } |
| 729 | |
| 730 | // Discard the data represented by line. |
| 731 | func (r *Reader) Discard(line []byte) (err error) { |
no test coverage detected