pattern

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	*regexp.Regexp
}

Match is a wrapper of *regexp.Regexp. It contains the match pattern compiled into a regular expression.

func MatchCompile

func MatchCompile(pattern string) (*Match, error)

Compile takes our match expression as a string, and compiles it into a *Match object. Will return an error on an invalid pattern.

Jump to

Keyboard shortcuts

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