cmpop

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package cmpop provides types and functions to easy compare operations. It is an addition to the cmp std package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ordering

type Ordering = int

Ordering represents the ordering of a comparsion operation between two values.

It is basically a helper type/ syntactic suggar.

const (
	// Less represents the case when a compared value is less than another.
	Less Ordering = -1
	// Equal represents the case when a compared value is equal to another.
	Equal Ordering = 0
	// Greater represents the case when a compared value is greater than another.
	Greater Ordering = 1
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳