cachedregexp

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cachedregexp provides a cached version of regexp.MustCompile and regexp.Compile.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile added in v2.3.3

func Compile(exp string) (*regexp.Regexp, error)

Compile returns a compiled regexp or an error if the pattern is invalid. Results are cached for performance.

func MustCompile

func MustCompile(exp string) *regexp.Regexp

Types

This section is empty.

Jump to

Keyboard shortcuts

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