uuid

package
v0.0.0-...-1ad63a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(s string, err error) string

Must panics if err is not nil.

func NewShort

func NewShort() (string, error)

NewShort creates a new uuid and encodes it to a short form.

Types

type UUID

type UUID [16]byte

A uuid is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC 4122.

func New

func New() (UUID, error)

New creates a new uuid.

func (UUID) String

func (u UUID) String() string

String returns the string form of uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or "" if uuid is invalid.

Jump to

Keyboard shortcuts

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