cmpx

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare[T Comparable[T]](left, right T) int

Compare orders two comparable values.

Types

type Comparable

type Comparable[T any] interface {
	Compare(T) int
}

Comparable is implemented by values with a deterministic ordering.

Jump to

Keyboard shortcuts

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