How to count the number of bytes read from bufio.Reader in Golang
I open a file and read from it using bufio.Reader like so
Go’s bufio internally ignores problematic ErrBufferFull?
I was looking at Go source code and found that, in bufio.Reader.collectFragments
(a helper used by ReadSlice
and ReadString
), a seemingly serious ErrBufferFull
is ignored, specifically:
Go’s bufio internally ignores problematic ErrBufferFull?
I was looking at Go source code and found that, in bufio.Reader.collectFragments
(a helper used by ReadSlice
and ReadString
), a seemingly serious ErrBufferFull
is ignored, specifically: