id

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package id generates the identifiers Wegweiser uses as primary keys.

  • it can be assigned before the transaction that stores it, so a caller can build a whole object graph and write it in one batch;
  • it stays unique when nodes merge their state once the cluster arrives;
  • it is safe to put in a URL, because it leaks no row count.

Index

Constants

Size is the length of an identifier in its canonical text form.

Variables

This section is empty.

Functions

func New

func New() string

New returns a fresh identifier.

New panics if the operating system's entropy source fails, which is not a condition a server can sensibly continue past.

func Valid

func Valid(s string) bool

Valid reports whether s is an identifier in canonical form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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