bufioiter

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

bufioiter defines iterator source/collector that corresponds to std library `bufio`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(scanner *bufio.Scanner) iter.Seq[string]

Scanner wraps scanner with an iterator over scanned text. The caller should check bufio.Scanner.Err after the returned iterator stops to see if it has been stopped for an error.

func ScanErr

func ScanErr(scanner *bufio.Scanner) iter.Seq2[string, error]

ScanErr is like Scan but also yields scanner's error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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