value

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T any](a, b T) bool

func EqualFuncFor

func EqualFuncFor[T any]() func(a, b T) bool

EqualFunc returns an equality tester optimised for T.

Types

type Equaler

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

Equaler supports equality comparison with values of the same type.

type Samer

type Samer interface {
	Same(a any) bool
}

Samer supports equality comparison with values of any type. It is the non-generic counterpart of Equaler.

Jump to

Keyboard shortcuts

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