Documentation ¶
Index ¶
- Variables
- func AnyPunct(buf string) (string, error)
- func Char(buf string, c byte) (string, error)
- func Digit(buf string, times int) (string, string, error)
- func Match(buf string, pat func(byte) bool, times int) (string, string, error)
- func MatchOne(buf string, pat func(byte) bool) (string, error)
- func Number(str string) (int, string, error)
- func Space(buf string, times int) (string, error)
- func Space0(buf string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPatternNotMatch represents an error that patterns doesn't match. ErrPatternNotMatch = errors.Error("Pattern not match") )
Functions ¶
func Match ¶
Match matches the `pat` at least `times`, and returns the match, the rest and the error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.