uuid

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// NewUUID generates an UUID.
	NewUUID() (string, error)
}

Generator is an interface of an UUID generator.

type GeneratorFunc

type GeneratorFunc func() (string, error)

GeneratorFunc is an adapter that simplifies creating Generator.

func (GeneratorFunc) NewUUID

func (f GeneratorFunc) NewUUID() (string, error)

NewUUID returns new UUID. It calls the inner method of GeneratorFunc.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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