Documentation ¶
Overview ¶
Package where provides short predicate constructors
Index ¶
- func Any[From, To any](getter func(From) []To, condition predicate.Predicate[To]) predicate.Predicate[From]
- func Eq[From any, To comparable](getter func(From) To, example To) predicate.Predicate[From]
- func Match[From, To any](getter func(From) To, condition predicate.Predicate[To]) predicate.Predicate[From]
- func Not[From, To any](getter func(From) To, condition predicate.Predicate[To]) predicate.Predicate[From]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶
func Any[From, To any](getter func(From) []To, condition predicate.Predicate[To]) predicate.Predicate[From]
Any - where.Any alias for the predicate.MatchAny
func Eq ¶
func Eq[From any, To comparable](getter func(From) To, example To) predicate.Predicate[From]
Eq creates predicate thet checks equality of a strcut property value to the specified example
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.