matcher

package
Version: v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: BSD-2-Clause-Views Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	Prefix string `json:"prefix,omitempty"`
	Sub    string `json:"substring,omitempty"`
	Regex  string `json:"regex,omitempty"`
	// contains filtered or unexported fields
}

func New

func New(prefix, sub, regex string) (*Matcher, error)

func (*Matcher) Match

func (m *Matcher) Match(s []byte) bool

func (*Matcher) String added in v0.11.0

func (m *Matcher) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL