predicates

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[E any](e E) bool

Empty is shortcut for EmptyI(0, e)

func EmptyI

func EmptyI[E any](_ int, e E) bool

EmptyI is a copy of the internal implementation from stretchr/testify/assert package

func Nil

func Nil[E any](e E) bool

Nil is shortcut for NilI(0, e)

func NilI

func NilI[E any](_ int, e E) bool

NilI is a copy of the internal implementation from stretchr/testify/assert package

Types

type PredicateFunc

type PredicateFunc[E any] func(E) bool

func Not

func Not[E any](f PredicateFunc[E]) PredicateFunc[E]

type PredicateIFunc

type PredicateIFunc[E any] func(int, E) bool

func NotI

func NotI[E any](f PredicateIFunc[E]) PredicateIFunc[E]

Jump to

Keyboard shortcuts

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