package lazyregexp

Import Path
	internal/lazyregexp (on

Dependency Relation
	imports 4 packages, and imported by 2 packages

Involved Source Files Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init.
Package-Level Type Names (only one)
/* sort by: | */
Regexp is a wrapper around regexp.Regexp, where the underlying regexp will be compiled the first time it is needed. (*Regexp) FindAllString(s string, n int) []string (*Regexp) FindString(s string) string (*Regexp) FindStringSubmatch(s string) []string (*Regexp) FindStringSubmatchIndex(s string) []int (*Regexp) FindSubmatch(s []byte) [][]byte (*Regexp) MatchString(s string) bool (*Regexp) ReplaceAllString(src, repl string) string (*Regexp) SubexpNames() []string func New(str string) *Regexp
Package-Level Functions (only one)
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.