uuid

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyStringUUID  = "00000000-0000-0000-0000-000000000000"
	EmptyStringUUIDb = [16]byte{
		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	}
)

EmptyStringUUID = all zero.

Functions

func MustUUID4

func MustUUID4() string

MustUUID4 - YES it's panic, use in init or example case only! Please be carefully!

func UUID4

func UUID4() string

UUID4 - return string presentation of UUID ver4 use uuid.NewV4() under the hood.

func UUID4b added in v1.4.6

func UUID4b() [16]byte

UUID4b - return [16]byte presentation of UUID ver4 use uuid.NewV4() under the hood.

Types

type UUID

type UUID = uuid.UUID

UUID = uuid.UUID.

Jump to

Keyboard shortcuts

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