matcher

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 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

Jump to

Keyboard shortcuts

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