where

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package where provides short predicate constructors

Index

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

func Match

func Match[From, To any](getter func(From) To, condition predicate.Predicate[To]) predicate.Predicate[From]

Match - where.Match alias for the predicate.Match

func Not

func Not[From, To any](getter func(From) To, condition predicate.Predicate[To]) predicate.Predicate[From]

Not creates negate condition for a a strcut property

Types

This section is empty.

Jump to

Keyboard shortcuts

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