matcher

package
v0.0.0-...-b990a46 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[E comparable](in ...E) func(E) bool

func Initial

func Initial[E comparable](e E) bool

func NotInitial

func NotInitial[E comparable](e E) bool

Types

type Matcher

type Matcher[E any] func(E) bool

func And

func And[E any](and ...Matcher[E]) Matcher[E]

func ContainsFunc

func ContainsFunc[E any](cmp func(E, E) int, in ...E) Matcher[E]

func Equals

func Equals[E comparable](e E) Matcher[E]

func Not

func Not[E any](m Matcher[E]) Matcher[E]

func Or

func Or[E any](and ...Matcher[E]) Matcher[E]

Jump to

Keyboard shortcuts

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