tools

package
v0.0.0-...-b0a4e96 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(s interface{}, c *gin.Context) (interface{}, error)

func GetCurrentDate

func GetCurrentDate() string

获取当前的时间 - 字符串

func GetCurrentMilliUnix

func GetCurrentMilliUnix() int64

获取当前的时间 - 毫秒级时间戳

func GetCurrentNanoUnix

func GetCurrentNanoUnix() int64

获取当前的时间 - 纳秒级时间戳

func GetCurrentUnix

func GetCurrentUnix() int64

获取当前的时间 - Unix时间戳

func GetRandomString

func GetRandomString(length int) string

随机字符串

func GetToday

func GetToday() string

func Int64ToString

func Int64ToString(val int64) string

func Md5Str

func Md5Str(s string) string

md5加密

func String2Int64

func String2Int64(val string) int64

字符串转int64

func UserTokenKey

func UserTokenKey(userId int64) string

用户token单设备

Types

This section is empty.

Jump to

Keyboard shortcuts

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