match

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 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 {
	Matches(name string) bool
}

func Any

func Any(matchers ...Matcher) Matcher

func EndsWith

func EndsWith(suffix string) Matcher

func Every

func Every(matchers ...Matcher) Matcher

func Not

func Not(matcher Matcher) Matcher

func Regex

func Regex(regex ...string) Matcher

func Substr

func Substr(sub ...string) Matcher

type MatcherFn

type MatcherFn func(name string) bool

func (MatcherFn) Matches

func (m MatcherFn) Matches(name string) bool

Jump to

Keyboard shortcuts

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