idutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decimal

func Decimal(id int64) string

Decimal formats a database integer identifier with the canonical base-10 representation used in public memory IDs, cursors, and stable IDs.

func ParseDecimal

func ParseDecimal(value string) (int64, error)

ParseDecimal parses a whitespace-trimmed base-10 integer identifier.

func ParsePrefixed

func ParsePrefixed(value, prefix string) (int64, error)

ParsePrefixed parses a decimal identifier after a required prefix.

func Prefixed

func Prefixed(prefix string, id int64) string

Prefixed joins a typed stable-ID prefix with a decimal identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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