Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenTooLong = errors.New("reader: token too long")
ErrTokenTooLong is returned when a line exceeds the maximum allowed buffer size.
Functions ¶
Types ¶
type Option ¶
type Option func(*Scanner)
func WithMaxBufSize ¶
WithMaxBufSize sets the maximum buffer size for the scanner.
func WithStartBufSize ¶
WithStartBufSize sets the initial buffer size for the scanner.
type Scanner ¶
func (*Scanner) Iter ¶
Iter returns a sequence of lines from the provided reader. Any error encountered during iteration can be retrieved using IterErr.
Click to show internal directories.
Click to hide internal directories.