pattern

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 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