generator

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNanoID

func GenerateNanoID(alphabet string, size int) (string, error)

GenerateNanoID generates a nano ID using the given alphabet and size.

Parameters: - alphabet: the characters to be used for generating the ID. - size: the length of the ID to be generated.

Returns: - string: the generated nano ID. - error: an error if the generation process fails.

func NewNanoID

func NewNanoID() (string, error)

NewNanoID generates a new NanoID.

It returns a string and an error.

func NewUUID

func NewUUID() string

NewUUID generates a new UUID.

It does not take any parameters. It returns a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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