readerutil

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLongLine

func ReadLongLine(r *bufio.Reader) (string, error)

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

type WalkLineFn func(string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL