package lineiter
import "tailscale.com/util/lineiter"
Package lineiter iterates over lines in things.
Index ¶
- func Bytes(bs []byte) iter.Seq[[]byte]
- func File(name string) iter.Seq[result.Of[[]byte]]
- func Reader(r io.Reader) iter.Seq[result.Of[[]byte]]
Functions ¶
func Bytes ¶
Bytes returns an iterator over the lines in bs. The returned substrings don't include the trailing newline. Lines may be empty.
func File ¶
File returns an iterator that reads lines from the named file.
The returned substrings don't include the trailing newline. Lines may be empty.
func Reader ¶
Reader returns an iterator over the lines in r.
The returned substrings don't include the trailing newline. Lines may be empty.
Source Files ¶
lineiter.go
- Version
- v1.84.1 (latest)
- Published
- May 29, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 day ago –
Tools for package owners.