xuuid

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrGenerateUUID xerrors.Error = "could not generate UUID"
	ErrNotSupported xerrors.Error = "operating system not supported"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID [16]byte

UUID represents a 128-bit Universal Unique Identifier (UUID) as defined in RFC 4122. Specifically, it represents the random variant, UUIDv4.

func New

func New() (UUID, error)

New returns a new UUID.

func (UUID) String

func (u UUID) String() string

Strings returns the string representation of the UUID.

Jump to

Keyboard shortcuts

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