shortid

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID []byte

ID is a short ID. It is not intended to guarantee uniqueness or any other cryptographic property and should only be used for labelling and other non-critical purposes.

func New

func New() ID

New generates a new short ID, of length 6 bytes.

func (ID) String

func (id ID) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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