ulid

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 3 Imported by: 0

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