compare

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoComapre added in v0.13.2

func AutoComapre(k1, k2 interface{}) int

AutoComapre 通用比较. 自动判断. 效率对比其他低

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 IntDesc added in v0.14.0

func IntDesc(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 compare

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