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 ¶
const (
CodeUUIDInvalid = "string.uuid.invalid"
)
UUID-specific error codes
const KUUID types.Kind = "uuid"
KUUID is the rule kind for UUID validation.
Variables ¶
This section is empty.
Functions ¶
func DefaultUUIDTranslations ¶
DefaultUUIDTranslations returns default English translations for UUID validation errors.
Types ¶
This section is empty.