Documentation ¶
Overview ¶
Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
Regexp is a wrapper around regexp.Regexp, where the underlying regexp will be compiled the first time it is needed.
func New ¶
New creates a new lazy regexp, delaying the compiling work until it is first needed. If the code is being run as part of tests, the regexp compiling will happen immediately.
func (*Regexp) MatchString ¶
Click to show internal directories.
Click to hide internal directories.