safeid

package
v0.0.0-...-fda0ada Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSafeID = int64(1)<<53 - 1

MaxSafeID is the maximum value that can be safely used as a JSON number.

Variables

This section is empty.

Functions

func New

func New[T ~int64](attempt int) T

Types

type ID

type ID int64

ID is a JavaScript-safe integer ID. It ranges from 1 to MaxSafeID.

Jump to

Keyboard shortcuts

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