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

id

package
v0.3.0-20261019214432-... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package id formats, validates, and compares counter-generated resource IDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b string) (int, error)

Compare compares two canonical positive decimal resource IDs numerically. Callers must ensure both IDs belong to the same queue and resource kind.

func FromCounter

func FromCounter(value int64) (string, error)

FromCounter returns the canonical decimal resource ID for value.

func Validate

func Validate(id string) error

Validate verifies that id is the canonical decimal representation of a positive int64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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