Versions in this module Expand all Collapse all v0 v0.1.0 Dec 15, 2024 Changes in this version + var ErrInvalidPct = errors.New("invalid use of '%'") + func ErrInvalidCaptureIdx(i int) error + type Capture struct + func (c Capture) End() int + func (c Capture) IsEmpty() bool + func (c Capture) Start() int + type Pattern struct + func New(ptn string) (*Pattern, error) + func (p *Pattern) Match(s string, init int, budget uint64) (captures []Capture, used uint64) + func (p *Pattern) MatchFromStart(s string, init int, budget uint64) (captures []Capture, used uint64)