predicate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func True

func True[T any](_ T) bool

Types

type Named

type Named interface {
	Name() string
}

type Predicate

type Predicate[T any] func(T) bool

func And

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

func ByName

func ByName[T Named](rxs regex.Regexes) Predicate[T]

func Not

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

func Or

func Or[T any](fs ...Predicate[T]) Predicate[T]

Jump to

Keyboard shortcuts

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