ordernum

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderId

type OrderId string

func NewOrderId

func NewOrderId() OrderId

func NewOrderIdWithTime

func NewOrderIdWithTime(t time.Time) OrderId

生成24位订单号 前面17位代表时间精确到毫秒,中间3位代表进程id,最后4位代表序号

func (OrderId) ExistsTag

func (id OrderId) ExistsTag(tag string) bool

func (OrderId) Len

func (id OrderId) Len() int

func (OrderId) String

func (id OrderId) String() string

func (OrderId) Tags

func (id OrderId) Tags() []string

func (OrderId) Time

func (id OrderId) Time() time.Time

func (OrderId) WithTag

func (id OrderId) WithTag(tag string) OrderId

Jump to

Keyboard shortcuts

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