import "internal/lazyregexp"
Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init.
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.
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.
Package lazyregexp imports 4 packages (graph) and is imported by 14 packages. Updated 2020-12-11. Refresh now. Tools for package owners.