shortid

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package shortid provides a generator for short IDs. Generated IDs are based on short IDs (github.com/teris-io/shortid).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator implements an ID generator based on short IDs.

func NewGenerator

func NewGenerator() *Generator

NewGenerator returns a new Generator instance.

func (*Generator) GenerateID

func (g *Generator) GenerateID() string

GenerateID generates a new ID.

Jump to

Keyboard shortcuts

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