id

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package id offers a lexicographically sortable based on time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

ID is a unique identifier. Intended to wrap a ULID which is lexicographically sortable.

func New

func New() ID

New returns a new ID with seed as time now.

func NewWithTime

func NewWithTime(t time.Time) ID

NewWithTime returns a new ID with the given time as a seed.

Jump to

Keyboard shortcuts

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