idgen

package
v0.0.0-...-3b74e67 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T ~string]() T

New returns a new unique ID.

func NewString

func NewString() string

Types

type IDGenerator

type IDGenerator interface {
	Gen() string
}
var Global IDGenerator = &KSUIDGenerator{}

type KSUIDGenerator

type KSUIDGenerator struct {
}

func (*KSUIDGenerator) Gen

func (k *KSUIDGenerator) Gen() string

Jump to

Keyboard shortcuts

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