equal

package
v1.0.0-beta.208 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasherPtrEqual

func HasherPtrEqual[T hasher.Hasher](a, b *T) bool

func PtrEqual

func PtrEqual[T Equaler[T]](a, b *T) bool

Types

type Equaler

type Equaler[T any] interface {
	Equal(other T) bool
}

Equaler is an interface that can be used to compare two objects. This is already present in models, but we need it here so that we can avoid a circular dependency.

Jump to

Keyboard shortcuts

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