idgen

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeBase36

func EncodeBase36(data []byte, length int) string

EncodeBase36 converts a byte slice to a base36 string of specified length. Matches the algorithm used for bd hash IDs.

func GenerateHashID

func GenerateHashID(prefix, title, description, creator string, timestamp time.Time, length, nonce int) string

GenerateHashID creates a hash-based ID for an issue. Uses base36 encoding (0-9, a-z) for better information density than hex. The length parameter is expected to be 3-8; other values fall back to a 3-char byte width.

Types

This section is empty.

Jump to

Keyboard shortcuts

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