uid

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(svc Service, id string) ([]uint64, error)

Decode an ID back to slice of IDs

func Encode

func Encode(svc Service, ids ...uint64) (string, error)

Encode a slice of IDs into one unique ID

func NewUUID

func NewUUID() (string, error)

Types

type Service

type Service interface {
	SquiOptions() sqids.Options
}

Jump to

Keyboard shortcuts

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