idgenerator

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 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 {
	Generate() string
}

IDGenerator generates a unique ID.

func NewFixedLengthIDGenerator

func NewFixedLengthIDGenerator(length int) IDGenerator

NewFixedLengthIDGenerator creates a new FixedLengthIDGenerator.

func NewPrefixIDGenerator

func NewPrefixIDGenerator(prefix string) IDGenerator

NewPrefixIDGenerator creates a new PrefixIDGenerator.

Jump to

Keyboard shortcuts

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