xid

package
v0.0.0-...-81e983d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Separator = "_"

Functions

func New

func New(ns string) string

New generates an ID that is Lexicographically Sortable with the given namespace

func NewWithTime

func NewWithTime(ns string, t time.Time) string

func Next

func Next(id string, duration time.Duration) string

Next generates the next ID with the same namespace after a given duration

func Parse

func Parse(id string) (string, ulid.ULID)

Types

This section is empty.

Jump to

Keyboard shortcuts

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