compare

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int

func (Int) Compare

func (i Int) Compare(j Item) Result

type Int32

type Int32 int32

func (Int32) Compare

func (i Int32) Compare(j Item) Result

type Int64

type Int64 int64

func (Int64) Compare

func (i Int64) Compare(j Item) Result

type Item

type Item interface {
	Compare(Item) Result
}

type Result

type Result int
const (
	Small Result = -1
	Equal Result = 0
	Big   Result = 1
)

Jump to

Keyboard shortcuts

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