package readerutil
import "github.com/bitrise-io/go-utils/readerutil"
Index ¶
- func ReadLongLine(r *bufio.Reader) (string, error)
- func WalkLines(inpReader io.Reader, walkFn WalkLineFn) error
- func WalkLinesString(inputStr string, walkFn WalkLineFn) error
- type WalkLineFn
Functions ¶
func ReadLongLine ¶
ReadLongLine - an alternative to bufio.Scanner.Scan, which can't handle long lines. This function is slower than bufio.Scanner.Scan, but can handle arbitrary long lines.
func WalkLines ¶
func WalkLines(inpReader io.Reader, walkFn WalkLineFn) error
WalkLines ...
func WalkLinesString ¶
func WalkLinesString(inputStr string, walkFn WalkLineFn) error
WalkLinesString ...
Types ¶
type WalkLineFn ¶
WalkLineFn - gets a line as its input if returns an error it stops the walk/reading to break the walk early, without an error, just return io.EOF
Source Files ¶
- Version
- v1.0.15 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 months ago –
Tools for package owners.