compare

package
v0.0.0-...-0f152c1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareFunc

type CompareFunc[T any] func(T, T) Result

func (CompareFunc[T]) Equal

func (f CompareFunc[T]) Equal(a, b T) bool

func (CompareFunc[T]) Greater

func (f CompareFunc[T]) Greater(a, b T) bool

func (CompareFunc[T]) Invert

func (f CompareFunc[T]) Invert() CompareFunc[T]

func (CompareFunc[T]) Less

func (f CompareFunc[T]) Less(a, b T) bool

type Result

type Result int8
const (
	Less    Result = -1
	Equal   Result = 0
	Greater Result = 1
)

Jump to

Keyboard shortcuts

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