Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPct = errors.New("invalid use of '%'")
Functions ¶
func ErrInvalidCaptureIdx ¶
Types ¶
type Capture ¶
type Capture struct {
// contains filtered or unexported fields
}
A Capture represents a matching substring.
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
A Pattern is a data structure able to interpret a Lua "pattern" (see e.g. https://www.lua.org/manual/5.3/manual.html#6.4.1).
func New ¶
New returns a new Pattern built from the given string (or an error if it is not a valid pattern string).
Click to show internal directories.
Click to hide internal directories.