uuid

package
v0.0.0-...-3db7acb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IwFlake *flake.IdWorker

IwFlake IwFlake

Functions

func GetFlakeID

func GetFlakeID() int64

GetFlakeID GetFlakeID

func NewGUID

func NewGUID() string

NewGUID md5 Guid

func NewGUIDWith

func NewGUIDWith(str string) string

NewGUIDWith md5 Guid 后面加个str生成之, 更有保障, 确保唯一

func UUID

func UUID() string

UUID Google UUID

Types

type Flake

type Flake struct {
	// contains filtered or unexported fields
}

Flake Flake

func (*Flake) Init

func (f *Flake) Init() error

Init Init

func (*Flake) NextID

func (f *Flake) NextID() (int64, error)

NextID NextID

Jump to

Keyboard shortcuts

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