comparable

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: BSD-3-Clause Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable interface {
	// Compare will return -1 (or a value less than 0) if a.Compare(b) has a < b,
	// 0 if the two are considered to be equal, and
	// +1 (or a value larger than 0) if a.Compare(b) has a > b.
	// For int this can be implemented as "a - b"
	Compare(b Comparable) int // Compare(b interface{}) int
}

type Equality

type Equality interface {
	// IsEqual will return true if the 2 items are equal.
	IsEqual(b Equality) bool
}

Jump to

Keyboard shortcuts

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