utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a interface{}, b interface{}) (ret int)

func Hash

func Hash(bytes []byte) uint32

func HashByKeys

func HashByKeys(data []interface{}) int

func LessThan

func LessThan(a interface{}, b interface{}) bool

func ParseTime

func ParseTime(value string) time.Time

ParseTime parse time in string format "2006-01-02 15:04:05"

func ParseTimeMilli

func ParseTimeMilli(value string) time.Time

ParseTimeMilli parse time in string format "2006-01-02 15:04:05.000"

func PartitionByKeys

func PartitionByKeys(count int, data []interface{}) int

Types

type KeyID

type KeyID string

func HashSlice

func HashSlice(slice []interface{}) KeyID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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