predicate

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate[T any] func(p T) bool

func AllOf

func AllOf[T any](predicates ...Predicate[T]) Predicate[T]

AllOf returns true if all the supplied predicates return true or else returns false

func AnyOf

func AnyOf[T any](predicates ...Predicate[T]) Predicate[T]

AnyOf returns true if any of the supplied predicates returns true or else returns false

func Not

func Not[T any](predicate Predicate[T]) Predicate[T]

Not negates the supplied Predicate

func StringMatchesPattern

func StringMatchesPattern(pattern string) Predicate[string]

Jump to

Keyboard shortcuts

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