misc

package
v0.0.0-...-be8dc82 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: BSD-3-Clause Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFatal

func CheckFatal(err error)

func Hash

func Hash(i string) string

func MD5Bytes

func MD5Bytes(data []byte) string

返回长度为32的MD5 Str(小写形式)

func MD5Str

func MD5Str(str string) string

返回长度为32的MD5 Str(小写形式)

func RandomSeed

func RandomSeed() int64

func UnixNanoTimestamp

func UnixNanoTimestamp() int64

func UnixTimestamp

func UnixTimestamp() int64

返回和下面MySQL函数等价的结果 SELECT UNIX_TIMESTAMP();

Types

This section is empty.

Jump to

Keyboard shortcuts

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