uuid

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 Generator added in v0.7.0

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

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

func NewUUIDGenerator

func NewUUIDGenerator(random bool) Generator

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.

type UUID

type UUID gouuid.UUID

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

Jump to

Keyboard shortcuts

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