Documentation ¶
Index ¶
- Constants
- func EncodeSymbol(sym byte, count uint64, content []byte) (symbol []byte)
- func EncodeSymbolForFunc(fn func() (int, byte, uint64, []byte, error)) (int, []byte, error)
- func Eof() (int, byte, uint64, []byte, error)
- func Err(err error) (int, byte, uint64, []byte, error)
- func GetPossibleDouble(r rune, n1 int, sym byte, data []byte, atEOF bool) (advance int, symbol []byte, err error)
- func GetRune(data []byte, atEOF bool) (r rune, n int, err error)
- func GetSeq(sym byte, fn func(r rune) bool, data []byte, isEOF bool) (advance int, symbol []byte, err error)
- func GetSeq1(sym byte, fn func(r rune) bool, data []byte, isEOF bool) (advance int, symbol byte, count uint64, body []byte, err error)
- func IsNewLine(r rune) bool
- func IsSpace(r rune) bool
- func MoreData() (int, byte, uint64, []byte, error)
- func SplitWrap(fn SplitFunc) func([]byte, bool) (advance int, body []byte, err error)
- type Scanner
- func (s *Scanner) AtEnd() bool
- func (s *Scanner) Bytes() []byte
- func (s *Scanner) Err() error
- func (s *Scanner) NextBytes() []byte
- func (s *Scanner) NextMore() bool
- func (s *Scanner) NextSymbol() byte
- func (s *Scanner) NextText() string
- func (s *Scanner) RawBytes() []byte
- func (s *Scanner) RawPeek() (sym []byte, more bool)
- func (s *Scanner) Scan() bool
- func (s *Scanner) Symbol() byte
- func (s *Scanner) Text() string
- type SplitFunc
Constants ¶
View Source
const (
EOF byte = 255
)
Variables ¶
This section is empty.
Functions ¶
func EncodeSymbolForFunc ¶
func GetPossibleDouble ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func (*Scanner) NextSymbol ¶
Click to show internal directories.
Click to hide internal directories.