compare

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 1 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
)

type Uint added in v1.4.3

type Uint uint

func (Uint) Compare added in v1.4.3

func (i Uint) Compare(j Item) Result

type Uint32 added in v1.4.3

type Uint32 uint32

func (Uint32) Compare added in v1.4.3

func (i Uint32) Compare(j Item) Result

type Uint64 added in v1.4.3

type Uint64 uint64

func (Uint64) Compare added in v1.4.3

func (i Uint64) Compare(j Item) Result

Jump to

Keyboard shortcuts

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