Versions in this module Expand all Collapse all v0 v0.8.0 Dec 30, 2020 Changes in this version + var CompileHistogram = discard.NewHistogram() + var ErrRegexAlreadyRegistered = errors.NewKind("Regex engine already registered: %s") + var ErrRegexNameEmpty = errors.NewKind("Regex engine name cannot be empty") + var ErrRegexNotFound = errors.NewKind("Regex engine not found: %s") + var MatchHistogram = discard.NewHistogram() + func Default() string + func Engines() []string + func New(name, re string) (Matcher, Disposer, error) + func NewGo(re string) (Matcher, Disposer, error) + func Register(name string, c Constructor) error + func SetDefault(name string) + type Constructor func(re string) (Matcher, Disposer, error) + type Disposer interface + Dispose func() + type Go struct + func (*Go) Dispose() + func (r *Go) Match(s string) bool + type Matcher interface + Match func(text string) bool