package lazyregexp
Import Path
internal/lazyregexp (on golang.org and go.dev)
Dependency Relation
imports 4 packages, and imported by one package
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, which is exported)
Regexp is a wrapper around regexp.Regexp, where the underlying regexp will be
compiled the first time it is needed.
once sync.Once
rx *regexp.Regexp
str string
(*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
(*T) build()
(*T) re() *regexp.Regexp
func New(str string) *Regexp
var go/doc.matchRx *Regexp
var go/doc.nonAlphaNumRx *Regexp
var go/doc.noteCommentRx *Regexp
var go/doc.noteMarkerRx *Regexp
var go/doc.outputPrefix *Regexp
Package-Level Functions (only one, which is exported)
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-Level Variables (only one, which is unexported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |