uuid

package
Version: v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 2 Imported by: 24

Documentation

Index

Constants

View Source
const (
	V4 byte

	VariantRFC4122 byte
)

UUID versions

View Source
const Size = 16

Size of a UUID in bytes.

Variables

View Source
var (

	// Nil is special form of UUID that is specified to have all
	// 128 bits set to zero.
	Nil = UUID{}
)

Functions

This section is empty.

Types

type UUID

type UUID [Size]byte

UUID representation compliant with specification described in RFC 4122.

func NewV4

func NewV4() (UUID, error)

NewV4 returns random generated UUID.

func (UUID) String

func (u UUID) String() string

Source Files

Jump to

Keyboard shortcuts

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