regexpool

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool is the representation of a pool of regular expression.

func DefaultPool

func DefaultPool() *Pool

DefaultPool returns the default pool which was initialized at init by default.

func NewPool

func NewPool(size int) (*Pool, error)

NewPool initializes a new pool with a specified size.

func (*Pool) Get

func (p *Pool) Get(expr string) (*regexp.Regexp, error)

Get retrieves the Regexp object from the pool or creates a new one if it does not exist.

Jump to

Keyboard shortcuts

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