uuid

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

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID string

func NewUUID

func NewUUID() UUID

NewUUID returns a new unique UUID. 4byte 时间, 3byte 机器ID 2byte pid 3byte 自增ID

func (UUID) Hex

func (id UUID) Hex() string

Hex returns a hex representation of the UUID. 返回16进制对应的字符串

func (UUID) Hex32

func (id UUID) Hex32() string

func (UUID) HexToUpper

func (id UUID) HexToUpper() string

Hex returns a hex representation of the UUID. 返回大写16进制对应的字符串

Jump to

Keyboard shortcuts

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