id

package
v0.0.0-...-0da26dc Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package id provides the functionality to generate identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	NewID() string
}

Generator is an interface to generate identifiers.

type UUIDGenerator

type UUIDGenerator struct{}

UUIDGenerator is a wrapper for github.com/google/uuid that implements the Generator interface.

func (*UUIDGenerator) NewID

func (*UUIDGenerator) NewID() string

NewID returns a new random UUID.

Jump to

Keyboard shortcuts

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