ulid

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EncodedSize = ulid.EncodedSize

EncodedSize is the encoded length of a ulid.

Variables

View Source
var ErrInvalidULID = errors.New("invalid ulid")

ErrInvalidULID is returned if the ULID is in an invalid format.

Functions

func NewULID

func NewULID() string

NewULID constructs a new randomized ulid in lowercase.

Types

type ULID

type ULID = ulid.ULID

ULID is the ulid type.

func ParseULID

func ParseULID(id string) (ULID, error)

ParseULID parses and validates the lowercase ulid is the correct format.

Jump to

Keyboard shortcuts

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