PTAL
On 2013/06/25 11:02:16, dvyukov wrote:
> have you tested it for off-by-one bugs?
I've tested it. It works. Lines are 1-indexed.
On 2013/06/25 11:02:16, dvyukov wrote:
> you need to copy s.Bytes() here
> it points into underlying scanner slice that will be overwritten
oops! For some reason I had in mind that it was pulling it out of the
underlying byte slice, which is impossible of course. Since I have to
copy here, I'll just use strings anyway which is more succinct in other
places.
https://codereview.appspot.com/10539043/