strmatcher

package
v0.0.0-...-62afbb6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler func(string) (Matcher, error)

type Matcher

type Matcher func(string) bool

func CompileExactMatcher

func CompileExactMatcher(opt string) (Matcher, error)

func CompileGlobMatcher

func CompileGlobMatcher(pattern string) (Matcher, error)

func CompileRegexpMatcher

func CompileRegexpMatcher(pattern string) (Matcher, error)

type Matchers

type Matchers []Matcher

func NewExactMatchers

func NewExactMatchers(options []string) Matchers

func NewGlobMatchers

func NewGlobMatchers(patterns []string) (Matchers, error)

func NewMatchers

func NewMatchers(compile Compiler, patterns []string) (Matchers, error)

func NewRegexpMatchers

func NewRegexpMatchers(patterns []string) (Matchers, error)

func (Matchers) All

func (ms Matchers) All(text string) bool

func (Matchers) Any

func (ms Matchers) Any(text string) bool

Jump to

Keyboard shortcuts

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