Open
Description
Thanks for the excellent library :),
I want to request support for seeking by line number, as in the linux tail
command:
-n, --lines=[+]NUM
output the last NUM lines, instead of the last 10; or use -n
+NUM to output starting with line NUM
Both options would be useful, I know that Go doesn't natively support seeking files by line number, but could probably come up with something fairly efficient, like:
- --lines=+n, read from beginning of file until you read n-1 newlines, then start from there.
- --lines=n, read from end of file until you read n newlines, the start from there.
If I find some time I'll try to work on this, and will update the issue if I do.