scanners

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSpace

func IsSpace(r rune) bool

IsSpace reports whether the character is a Unicode white space character. We avoid dependency on the unicode package, but check validity of the implementation in the tests.

func ScanBytes

func ScanBytes(data []byte, atEOF bool) (int, []byte, error)

ScanBytes is a split function for a Scanner that returns ALL data []bytes as a token.

func ScanLines

func ScanLines(data []byte, atEOF bool) (int, []byte, error)

func ScanWords

func ScanWords(data []byte, atEOF bool) (int, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL