filter

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MinMatchLen = 2

MinMatchLen defines a minimum length of the match string/pattern

Variables

This section is empty.

Functions

func Apply

func Apply(ss []string, matches []string) (list []string)

Apply selects strings matching ALL patterns specified and sorts the result (for the sake of determinism)

func DoesMatch

func DoesMatch(s string, matches []string) bool

DoesMatch checks if string passed matches ALL patterns specified

func Validate

func Validate(matches []string) error

Validate checks match strings for the minimum length requirements

Types

This section is empty.

Jump to

Keyboard shortcuts

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