Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRegexAlreadyRegistered is returned when there is a previously // registered regex engine with the same name. ErrRegexAlreadyRegistered = errors.NewKind("Regex engine already registered: %s") // ErrRegexNameEmpty returned when the name is "". ErrRegexNameEmpty = errors.NewKind("Regex engine name cannot be empty") // ErrRegexNotFound returned when the regex engine is not registered. ErrRegexNotFound = errors.NewKind("Regex engine not found: %s") )
Functions ¶
func Register ¶
func Register(name string, c Constructor) error
Register add a new regex engine to the registry.
func SetDefault ¶
func SetDefault(name string)
SetDefault sets the regex engine returned by Default.
Types ¶
type Constructor ¶
Constructor creates a new Matcher.
type Go ¶
type Go struct {
// contains filtered or unexported fields
}
Go holds go regex engine Matcher.
Click to show internal directories.
Click to hide internal directories.