idx

package
v0.0.0-...-774e91b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDTid

func GenDTid(snPrefix string) string

GenDTid 生成日期时间单号 比如:单号-DW20230228 DW为前缀,中间是单号的年月日

func GenDid

func GenDid(snPrefix string) string

GenDid 生成日期单号 比如:单号-DW20230228 DW为前缀,中间是单号的年月日

func GenOid

func GenOid(snPrefix string) string

GenOid 生成单号 比如:单号-DW2023022812121265845 DW为前缀,中间是单号的年月日时分秒,最后5位是随机数字

func GenSnId

func GenSnId() int64

func GenSnIdStr

func GenSnIdStr() string

func GenUUID

func GenUUID() string

GenUUID 生成UUID

func GetNanoId

func GetNanoId() string

GetNanoId 获取NanoId 该ID替代UUID,占用的字节数更小,生成速度更快

func InitFlake

func InitFlake(id int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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