ulid

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ulid provides ULID validation as a plugin.

The ulid package implements ULID (Universally Unique Lexicographically Sortable Identifier) format validation with support for Crockford's Base32 encoding validation, 26-character length requirement, character set validation (0-9, A-Z excluding I, L, O, U), and custom error messages and translations. The package registers itself as a plugin with the main validation system and provides strict format checking for ULID representations using Crockford's Base32 alphabet (0-9, A-Z excluding I, L, O, U for readability).

Index

Constants

View Source
const (
	CodeULIDInvalid = "string.ulid.invalid"
)

ULID-specific error codes

View Source
const KULID types.Kind = "ulid"

KULID is the rule kind for ULID validation.

Variables

This section is empty.

Functions

func DefaultULIDTranslations

func DefaultULIDTranslations() map[string]string

DefaultULIDTranslations returns default English translations for ULID validation errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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