I am implementing my own custom bufio.SplitFunc
and I'm getting
panic: bufio.Scan: too many empty tokens without progressing [recovered]
panic: bufio.Scan: too many empty tokens without progressing
when running my code. I've debugged the issue down to my SplitFunc
being called with empty data and atEOF=true
. If I have no more tokens to return, what should my SplitFunc
return? An error to stop the processing?