Help us shape the future of Go! Take the 2026 Go Developer Survey

ids

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ids generates prefixed, time-sortable identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(prefix string) string

New returns an ID of the form "<prefix>_<time><random>", where the time component sorts lexicographically by millisecond and the random suffix carries 60 bits of entropy.

func Random

func Random(n int) string

Random returns n random characters from the base32 alphabet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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