uuid

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() string

New return UUID. see: https://en.wikipedia.org/wiki/Universally_unique_identifier#Format

A UUID is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC 4122. In its canonical textual representation, the 16 octets of a UUID are represented as 32 hexadecimal (base-16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens). For example:

123e4567-e89b-12d3-a456-426614174000
xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx

func SnowFlakeID

func SnowFlakeID() string

SnowFlakeID is string format SnowFlakeIDUint64

func SnowFlakeIDUint64

func SnowFlakeIDUint64() uint64

SnowFlakeIDUint64 return sequence uuid

func UUID

func UUID() string

UUID return uuid. format:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Deprecated. Please use New()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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