predication

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate[T any] functions.Mapper[T, bool]

func Equals

func Equals[T comparable](param T) Predicate[T]

func GreaterThan

func GreaterThan[T cmp.Ordered](param T) Predicate[T]

func GreaterThanOrEqual

func GreaterThanOrEqual[T cmp.Ordered](param T) Predicate[T]

func IsNil

func IsNil[T any]() Predicate[*T]

func IsNotNil

func IsNotNil[T any]() Predicate[*T]

func LessThan

func LessThan[T cmp.Ordered](param T) Predicate[T]

func LessThanOrEqual

func LessThanOrEqual[T cmp.Ordered](param T) Predicate[T]

func NotEquals

func NotEquals[T comparable](param T) Predicate[T]

func (Predicate[T]) And

func (p Predicate[T]) And(other Predicate[T]) Predicate[T]

func (Predicate[T]) Not

func (p Predicate[T]) Not() Predicate[T]

func (Predicate[T]) Or

func (p Predicate[T]) Or(other Predicate[T]) Predicate[T]

Jump to

Keyboard shortcuts

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