uuid

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID gouuid.UUID

UUID is currently a wrapper for the gouuid library with some extra functions

type UUIDGenerator

type UUIDGenerator interface {
	NextUUID() (string, error)
}

A UUIDGenerator generates uuids either randomly or the same one every time (for test purposes)

func NewUUIDGenerator

func NewUUIDGenerator(random bool) UUIDGenerator

NewUUIDGenerator returns a UUIDGenerator. If passed (true), the generator will produce a unique uuid every time. If passed (false), the generator will produce the same uuid every time.

Jump to

Keyboard shortcuts

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