-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Hi! My environment is Go 1.14, macOS Catalina 10.15.3.
When reading a large file (over approx 65K), I am getting bufio.Segmenter: token too long
To reproduce: here’s a repo. Run the tests with go test -v.
I believe this error is in error, since no token in the file is that long. I expect to be able to use a reader of arbitrary length.
So either the returned error is inaccurate, or there is a bug in buffering/scanning the bytes. Thanks.
—
If curious I am using the segmenter here: https://github.com/clipperhouse/jargon. Thanks for creating it!