Versions in this module Expand all Collapse all v1 v1.4.4 Nov 9, 2022 v1.4.3 Nov 9, 2022 Changes in this version + func CountLines(file string) (int, error) + func DupReadCloser(reader io.ReadCloser) (io.ReadCloser, io.ReadCloser) + 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