utils

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStruct

func CopyStruct(src, dst interface{})

CopyStruct 相同的数据对象赋值

func DeleteInt64Array

func DeleteInt64Array(arr []int64, del []int64) []int64

DeleteInt64Array 删除 int64 切片

func GetGenerateRandom

func GetGenerateRandom(length int) string

func GetMillisecond

func GetMillisecond() int64

func GetUUID

func GetUUID() string

func Hash32

func Hash32(data []byte) uint32

func Hash64

func Hash64(data []byte) uint64

func InternalIP

func InternalIP() string

InternalIP return internal ip.

func JsonDecoder

func JsonDecoder(data []byte, result interface{}) error

JsonDecoder json解析int64缺精度问题

func Md5

func Md5(data []byte) []byte

func Md5Hex

func Md5Hex(data []byte) string

Md5Hex returns the md5 hex string of data.

func RandomInt

func RandomInt(begin, end int) int

RandomInt 获取 int 随机数

func RandomInt64

func RandomInt64() int64

func RemoveRepeatInt64Array

func RemoveRepeatInt64Array(arr []int64) []int64

RemoveRepeatInt64Array int64 数字切片去重

func SubstrInt64Array

func SubstrInt64Array(src, dst []int64) []int64

SubstrInt64Array int64 数字切片差集

Types

This section is empty.

Jump to

Keyboard shortcuts

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