cmp

package
v0.0.0-...-6902453 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShallowEqual

func ShallowEqual(a any, b any) bool

func UpdateWhen

func UpdateWhen[T any](when Result, target *T, next *T) bool

Types

type Comparer

type Comparer interface {
	Compare(v any) int
}

type Result

type Result = func() bool

func All

func All(results ...Result) Result

func Any

func Any(results ...Result) Result

func Cast

func Cast[T any](v any, do func(v *T) Result) Result

func Eq

func Eq[T comparable](a T, b T) Result

func Not

func Not(result Result) Result

Jump to

Keyboard shortcuts

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