extra

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lines

func Lines(r io.Reader) sequence.Sequence[string]

Lines returns a sequence that produces one at a time, lines of text from the provided reader. Errors while reading will interupt processing.

This version is Volatile, meaning that you can only iterate over the input a single time, as it can't "go back" and return old lines, since none are stored.

If you need to use the lines multiple times, consider calling Materialize on the returned sequence, or wrap it with [process.Buffer].

Types

This section is empty.

Jump to

Keyboard shortcuts

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