NewBufferedReader creates a BufferedReader that calls onDone with the.
func NewBufferedReader(src io.ReadCloser, onDone func(io.Reader, error) ) *BufferedReaderNewBufferedReader creates a BufferedReader that calls onDone with the buffered content when the source reaches EOF, is closed, or Read returns an error. The second argument to onDone is the error that ended the read, or nil for EOF/Close.
| Name | Type | Description |
|---|---|---|
src* | io.ReadCloser | |
onDone* | func(io.Reader, error |