Help us shape the future of Go! Take the 2026 Go Developer Survey

pattern

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 4 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