idx

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNanoID

func DefaultNanoID() (string, error)

DefaultNanoID generates a short ID of length 21.

func NanoID

func NanoID(n int) (string, error)

NanoID generates a URL-safe short ID of length n. The default alphabet matches RandString. A typical length is 21 (~128-bit entropy).

Types

This section is empty.

Jump to

Keyboard shortcuts

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