strmatcher

package
v3.33.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 2 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 interface {
	Match(string) bool
}

type MatcherGroup

type MatcherGroup struct {
	// contains filtered or unexported fields
}

func NewMatcherGroup

func NewMatcherGroup() *MatcherGroup

func (*MatcherGroup) Add

func (g *MatcherGroup) Add(m Matcher) uint32

func (*MatcherGroup) Match

func (g *MatcherGroup) Match(pattern string) uint32

func (*MatcherGroup) Size

func (g *MatcherGroup) Size() uint32

type Type

type Type byte
const (
	Full Type = iota
	Substr
	Domain
	Regex
)

func (Type) New

func (t Type) New(pattern string) (Matcher, error)

Jump to

Keyboard shortcuts

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