matcher

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Overview

Package matcher provides an easy to use regexp wrapper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher interface {
	Match(value string) bool
	MatchGroups(value string) (map[string]string, bool)
	String() string
}

Matcher is a regular expression matcher

func Must

func Must(expression string) Matcher

Must creates a new regular expression matcher or panics

func New

func New(expression string) (Matcher, error)

New creates a new regular expression matcher or returns error

Jump to

Keyboard shortcuts

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