uuid

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

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Size = 16
)

Variables

View Source
var (
	ErrInvalidUUID = fmt.Errorf("invalid uuid string")
)

Functions

func NewUUID

func NewUUID() string

NewUUID ...

Types

type UUID

type UUID [Size]byte

UUID ...

func Generate

func Generate() (u UUID)

Generate a random UUID

func Parse

func Parse(s string) (u UUID, e error)

Parse UUID from string

func (UUID) RawString

func (u UUID) RawString() string

RawString returns format 974AFFD31BCC44758910A967AFAE51FE

func (UUID) String

func (u UUID) String() string

String returns format 974AFFD3-1BCC-4475-8910-A967AFAE51FE

func (UUID) Version

func (u UUID) Version() byte

Version return current version

Jump to

Keyboard shortcuts

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