compare

package
v0.7.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte

func Byte(k1, k2 interface{}) int

func ByteArray added in v0.7.4

func ByteArray(k1, k2 interface{}) int

ByteArray []byte compare

func Float32

func Float32(k1, k2 interface{}) int

func Float64

func Float64(k1, k2 interface{}) int

func Int

func Int(k1, k2 interface{}) int

func Int16

func Int16(k1, k2 interface{}) int

func Int32

func Int32(k1, k2 interface{}) int

func Int64

func Int64(k1, k2 interface{}) int

func Int8

func Int8(k1, k2 interface{}) int

func Rune

func Rune(k1, k2 interface{}) int

func RuneArray added in v0.7.4

func RuneArray(k1, k2 interface{}) int

RuneArray []rune compare

func String

func String(k1, k2 interface{}) int

String comp

func Time

func Time(k1, k2 interface{}) int

func UInt

func UInt(k1, k2 interface{}) int

func UInt16

func UInt16(k1, k2 interface{}) int

func UInt32

func UInt32(k1, k2 interface{}) int

func UInt64

func UInt64(k1, k2 interface{}) int

func UInt8

func UInt8(k1, k2 interface{}) int

Types

type Compare

type Compare func(k1, k2 interface{}) int

Compare 如下

k1 > k2 -->  1
k1 == k2 --> 0
k1 < k2 --> -1

Jump to

Keyboard shortcuts

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