Help us shape the future of Go! Take the 2026 Go Developer Survey

lazyregexp

package
v0.19.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package lazyregexp compiles package-level regular expressions on first use, so a program that links a pattern but never matches it, as every Worker isolate does at startup, does not compile it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(expr string) func() *regexp.Regexp

New returns expr's compiled form, compiled on the first call; it panics on an invalid expr as regexp.MustCompile does.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL