Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator 包含时间和UUID生成函数
func NewGeneratorWith ¶
func NewGeneratorWith(timestampGen TimestampGenerateFunc, uuidGen ShortUUIDGenerateFunc) *Generator
NewGeneratorWith 创建一个Generator实例
type ShortUUIDGenerateFunc ¶
type ShortUUIDGenerateFunc func() string
ShortUUIDGenerateFunc 定义生成ShortUUID的函数类型
type TimestampGenerateFunc ¶
TimestampGenerateFunc 定义生成时间戳的函数类型
Click to show internal directories.
Click to hide internal directories.