Documentation
¶
Index ¶
- Constants
- func IsAlnum[T byte | rune](b T) bool
- func IsAlpha[T byte | rune](b T) bool
- func IsCtrl[T byte | rune](b T) bool
- func IsDigit[T byte | rune](b T) bool
- type Pipe
- type Pos
- type Scanner
- func (s *Scanner) Back()
- func (s *Scanner) CurrentPos() Pos
- func (s *Scanner) EndToken() []byte
- func (s *Scanner) Peek() (byte, error)
- func (s *Scanner) Read() (byte, error)
- func (s *Scanner) SkipSpaceAndPeek() (byte, error)
- func (s *Scanner) SkipSpaceAndRead() (byte, error)
- func (s *Scanner) StartToken() Pos
Constants ¶
View Source
const EOF byte = 0xFF
0xFF is a byte that should not appear in a UTF-8 encoded stream of bytes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func (*Scanner) CurrentPos ¶
func (*Scanner) SkipSpaceAndPeek ¶
func (*Scanner) SkipSpaceAndRead ¶
func (*Scanner) StartToken ¶
Click to show internal directories.
Click to hide internal directories.