generator

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdGenerator

type IdGenerator interface {
	GenerateId() string
}

type IncrementalGenerator

type IncrementalGenerator struct {
	// contains filtered or unexported fields
}

func NewIncrementalGenerator

func NewIncrementalGenerator() *IncrementalGenerator

func (*IncrementalGenerator) GenerateId

func (i *IncrementalGenerator) GenerateId() string

type UUIDGenerator

type UUIDGenerator struct {
}

func NewUUIDGenerator

func NewUUIDGenerator() *UUIDGenerator

func (*UUIDGenerator) GenerateId

func (u *UUIDGenerator) GenerateId() string

Jump to

Keyboard shortcuts

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