Versions in this module Expand all Collapse all v0 v0.0.1 Aug 3, 2024 Changes in this version + func CountLines(file string) (int, error) + func DupReadCloser(reader io.ReadCloser) (io.ReadCloser, io.ReadCloser) + func LimitDupReadCloser(reader io.ReadCloser, n int64) (io.ReadCloser, io.ReadCloser) + func LimitTeeReader(r io.Reader, w io.Writer, n int64) io.Reader + func NopCloser(w io.Writer) io.WriteCloser + func ReadBytes(reader io.Reader, buf []byte) error + func ReadText(filename string) (string, error) + func ReadTextLines(filename string, opts ...TextReadOption) ([]string, error) + func RedirectInOut() (restore func(), err error) + type BufferPool struct + func NewBufferPool(capability int) *BufferPool + func (bp *BufferPool) Get() *bytes.Buffer + func (bp *BufferPool) Put(buf *bytes.Buffer) + type TextLineScanner struct + func NewTextLineScanner(reader io.Reader) *TextLineScanner + func (scanner *TextLineScanner) Line() (string, error) + func (scanner *TextLineScanner) Scan() bool + type TextReadOption func(*textReadOptions) + func KeepSpace() TextReadOption + func OmitWithPrefix(prefix string) TextReadOption + func WithoutBlank() TextReadOption