idgen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIDLength = 63
)

Variables

View Source
var (
	Default = NewIDGen(randReader{}, DefaultIDLength)
)

Functions

This section is empty.

Types

type IDGen

type IDGen interface {
	Generate() string
}

func NewIDGen

func NewIDGen(r io.Reader, length int) IDGen

NewIDGen creates a new IDGen. The length parameter is the desired length of the generated id.

Jump to

Keyboard shortcuts

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