package lazyregexp

Import Path
	internal/lazyregexp (on and

Dependency Relation
	imports 4 packages, and imported by one package

Involved Source Files
	d-> lazyre.go

Exported Type Names

type Regexp (struct) Regexp is a wrapper around regexp.Regexp, where the underlying regexp will be compiled the first time it is needed. (*T) FindAllString(s string, n int) []string (*T) FindString(s string) string (*T) FindStringSubmatch(s string) []string (*T) FindStringSubmatchIndex(s string) []int (*T) FindSubmatch(s []byte) [][]byte (*T) MatchString(s string) bool (*T) ReplaceAllString(src, repl string) string (*T) SubexpNames() []string func New(str string) *Regexp
Exported Values
func New(str string) *Regexp 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.