f

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comparable added in v1.0.68

func Comparable[T any](v T) bool

Comparable reports whether the value v is comparable.

func Eq

func Eq[T comparable](t T) func(T) bool

Eq returns a comparison function that evaluates to true when a value is equal to the provided threshold.

func Eqd added in v1.0.68

func Eqd[T any](t T) func(T) bool

Eqd returns a comparison function that evaluates to true when a value is deeply equal to the provided threshold.

func Even added in v1.0.68

func Even[T constraints.Integer](int T) bool

Even is a generic function that checks if the provided integer is even.

func Gt

func Gt[T cmp.Ordered](t T) func(T) bool

Gt returns a comparison function that evaluates to true when a value is greater than the threshold.

func Gte added in v1.0.68

func Gte[T cmp.Ordered](t T) func(T) bool

Gte returns a comparison function that evaluates to true when a value is greater than or equal to the threshold.

func Lt

func Lt[T cmp.Ordered](t T) func(T) bool

Lt returns a comparison function that evaluates to true when a value is less than the threshold.

func Lte added in v1.0.68

func Lte[T cmp.Ordered](t T) func(T) bool

Lte returns a comparison function that evaluates to true when a value is less than or equal to the threshold.

func Ne

func Ne[T comparable](t T) func(T) bool

Ne returns a comparison function that evaluates to true when a value is not equal to the provided threshold.

func Ned added in v1.0.68

func Ned[T any](t T) func(T) bool

Ned returns a comparison function that evaluates to true when a value is not deeply equal to the provided threshold.

func Odd added in v1.0.68

func Odd[T constraints.Integer](int T) bool

Odd is a generic function that checks if the provided integer is odd.

func Zero added in v1.0.68

func Zero[T cmp.Ordered](v T) bool

Zero is a generic function designed to check if a value is considered zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

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