uuid

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() string

Generate 不要再调用这个函数,太丑了,找时间废除.

func RandomIpV4Address

func RandomIpV4Address() string

RandomIpV4Address returns a valid IPv4 address as string

func SnowFlakeID

func SnowFlakeID() string

SnowFlakeID is string format SnowFlakeIDUint64

func SnowFlakeIDUint64

func SnowFlakeIDUint64() uint64

SnowFlakeIDUint64 return sequence uuid 39 bits for time in units of 10 msec 8 bits for a sequence number 16 bits for a machine id

func UUID

func UUID() string

UUID 返回 uuid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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