Documentation ¶
Overview ¶
Package streamio implements utilities for working with streaming I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuneScanner ¶
type RuneScanner interface { io.RuneScanner io.Closer }
func NewRuneScanner ¶
NewRuneScanner returns an io.RuneScanner (and io.Closer) that bufferes a file, similar to bufio.NewReader. There are two advantages over bufio.NewReader:
It takes a Context, and causes reads to fail once the Context is canceled; allowing large parse operations to be gracefully cut short.
It logs the progress of reading the file via textui.Progress.
Click to show internal directories.
Click to hide internal directories.