2016-12-09 07:17:34 -05:00
|
|
|
// Package bufio is a replacement of the standard golang package bufio.
|
|
|
|
package bufio
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bufio"
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
2016-12-11 20:14:48 -05:00
|
|
|
// OriginalReader invokes bufio.NewReader() from Golang standard library.
|
2016-12-09 07:17:34 -05:00
|
|
|
func OriginalReader(reader io.Reader) *bufio.Reader {
|
|
|
|
return bufio.NewReader(reader)
|
|
|
|
}
|
|
|
|
|
2016-12-11 20:14:48 -05:00
|
|
|
// OriginalReaderSize invokes bufio.NewReaderSize() from Golang standard library.
|
2016-12-09 07:17:34 -05:00
|
|
|
func OriginalReaderSize(reader io.Reader, size int) *bufio.Reader {
|
|
|
|
return bufio.NewReaderSize(reader, size)
|
|
|
|
}
|