()
| 120 | } |
| 121 | |
| 122 | func (p *parser) shiftLines() (err error) { |
| 123 | for i := 0; i < len(p.lines)-1; i++ { |
| 124 | p.lines[i] = p.lines[i+1] |
| 125 | } |
| 126 | p.lines[len(p.lines)-1], err = p.r.ReadString('\n') |
| 127 | return |
| 128 | } |
| 129 | |
| 130 | // Line returns a line from the parser without advancing it. A delta of 0 |
| 131 | // returns the current line, while higher deltas return read-ahead lines. It |