ulid

package
v2.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package ulid adapts ULID generation to the core ID generator port.

The wrapper keeps ULID-specific dependencies in contrib while giving application wiring a concrete monotonic identifier generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewULIDGen

func NewULIDGen() ports.IDGen

NewULIDGen creates a new ULID generator that implements ports.IDGen.

Types

type ULIDGen

type ULIDGen struct{}

ULIDGen generates ULID strings.

func (ULIDGen) New

func (ULIDGen) New() string

New returns a new ULID string.

Jump to

Keyboard shortcuts

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