compare

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompByte

type CompByte byte

func (CompByte) Compare

func (a CompByte) Compare(b Comparable) int

type CompBytes

type CompBytes []byte

func (CompBytes) Compare

func (a CompBytes) Compare(b Comparable) int

type CompFloat32

type CompFloat32 float32

func (CompFloat32) Compare

func (a CompFloat32) Compare(b Comparable) int

type CompFloat64

type CompFloat64 float64

func (CompFloat64) Compare

func (a CompFloat64) Compare(b Comparable) int

type CompInt

type CompInt int

func (CompInt) Compare

func (a CompInt) Compare(b Comparable) int

type CompInt16

type CompInt16 int16

func (CompInt16) Compare

func (a CompInt16) Compare(b Comparable) int

type CompInt32

type CompInt32 int32

func (CompInt32) Compare

func (a CompInt32) Compare(b Comparable) int

type CompInt64

type CompInt64 int64

func (CompInt64) Compare

func (a CompInt64) Compare(b Comparable) int

type CompInt8

type CompInt8 int8

func (CompInt8) Compare

func (a CompInt8) Compare(b Comparable) int

type CompRune

type CompRune rune

func (CompRune) Compare

func (a CompRune) Compare(b Comparable) int

type CompString

type CompString string

func (CompString) Compare

func (a CompString) Compare(b Comparable) int

type CompTime

type CompTime time.Time

func (CompTime) Compare

func (a CompTime) Compare(b Comparable) int

type CompUint

type CompUint uint

func (CompUint) Compare

func (a CompUint) Compare(b Comparable) int

type CompUint16

type CompUint16 uint16

func (CompUint16) Compare

func (a CompUint16) Compare(b Comparable) int

type CompUint32

type CompUint32 uint32

func (CompUint32) Compare

func (a CompUint32) Compare(b Comparable) int

type CompUint64

type CompUint64 uint64

func (CompUint64) Compare

func (a CompUint64) Compare(b Comparable) int

type CompUint8

type CompUint8 uint8

func (CompUint8) Compare

func (a CompUint8) Compare(b Comparable) int

type Comparable

type Comparable interface {
	Compare(Comparable) int
}

Compare returns a value indicating the sort order relationship between the receiver and the parameter. Given c = a.Compare(b):

c < 0 if a < b;
c == 0 if a == b; and
c > 0 if a > b.

Jump to

Keyboard shortcuts

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