match

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match func(ctx context.Context, line string, m map[string]struct{}) bool

func (Match) ReaderToWriter

func (m Match) ReaderToWriter(
	ctx context.Context,
	s map[string]struct{},
	rdr io.Reader,
	wtr io.Writer,
) error

func (Match) StdinToStdout

func (m Match) StdinToStdout(
	ctx context.Context,
	s map[string]struct{},
) error

func (Match) ToLower

func (m Match) ToLower() Match

func (Match) ToSplited

func (m Match) ToSplited(line2splited func(string) []string) Match

func (Match) WriteMatchAll

func (m Match) WriteMatchAll(
	ctx context.Context,
	lines iter.Seq[string],
	s map[string]struct{},
	wtr func(string) error,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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