pattern

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 2 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 *Match, err 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