func New(r io.Reader, startLine, startOffset int64, onNewLine func(line, offset int64)) *LineReader {
	return &LineReader{
		r:         bufio.NewReader(r),
		Line:      startLine,
		Offset:    startOffset,
		onNewLine: onNewLine,
	}
}
New creates a new LineReader. A reader that keeps track of the line positions within the source.
package linereader
import (
	"bufio"
	"io"
)