regexcache

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package regexcache caches compiled regular expressions keyed by their pattern string, so the libphonenumber port avoids recompiling the same metadata-derived patterns on every call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func For

func For(pattern string) *regexp.Regexp

For returns the compiled regexp for pattern, compiling and caching it on first use. It panics if pattern is not a valid regular expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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