uuid

package
v0.0.0-...-092e436 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package uuid provides primitives for creating random universally unique identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID [16]byte

UUID represents a universally unique identifier

func Random

func Random() (UUID, error)

Random generates random UUID. It uses CSPRNG.

func (UUID) String

func (u UUID) String() string

String returns the canonical form of the UUID. The canonical form is represented by 32 lowercase hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12.

Jump to

Keyboard shortcuts

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