Documentation
¶
Index ¶
- Variables
- func ScanLines(data []byte) (advance int, token []byte, err error)
- type Scanner
- func (bs *Scanner) Buffer(buf []byte)
- func (bs *Scanner) Bytes() []byte
- func (bs *Scanner) Err() error
- func (bs *Scanner) MaxConsecutiveEmptyReads(v int)
- func (bs *Scanner) MaxTokenSize(max int)
- func (bs *Scanner) Scan() bool
- func (bs *Scanner) Split(split SplitFunc)
- func (bs *Scanner) Text() string
- type SplitFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooLong = errors.New("rscanner.Scanner: token too long") ErrNegativeAdvance = errors.New("rscanner.Scanner: SplitFunc returns negative advance count") ErrAdvanceTooFar = errors.New("rscanner.Scanner: SplitFunc returns advance count beyond input") ErrBadReadCount = errors.New("rscanner.Scanner: Read returned impossible count") )
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) MaxConsecutiveEmptyReads ¶
func (*Scanner) MaxTokenSize ¶
Click to show internal directories.
Click to hide internal directories.