Help us shape the future of Go! Take the 2026 Go Developer Survey

patterns

package
v0.3.0 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: 5 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 {
	Find(input io.Reader, pattern string) (bool, error)
}

type Patterns

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

func New

func New(logger micrologger.Logger) *Patterns

func (*Patterns) Find

func (pa *Patterns) Find(input io.Reader, pattern string) (bool, error)

Find returns true if the given pattern is found in the input pipe.

Jump to

Keyboard shortcuts

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