uuid

package
v3.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package uuid provides UUID validation as a plugin.

The uuid package implements canonical UUID format validation with support for standard UUID format validation, hyphen placement verification, hexadecimal character validation, and custom error messages and translations. The package registers itself as a plugin with the main validation system and provides strict format checking for canonical UUID representations using the standard format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each 'x' is a hexadecimal digit (0-9, a-f, A-F).

Index

Constants

View Source
const (
	CodeUUIDInvalid = "string.uuid.invalid"
)

UUID-specific error codes

View Source
const KUUID types.Kind = "uuid"

KUUID is the rule kind for UUID validation.

Variables

This section is empty.

Functions

func DefaultUUIDTranslations

func DefaultUUIDTranslations() map[string]string

DefaultUUIDTranslations returns default English translations for UUID 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