domain

package
v3.0.7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package domain registers universal zero-dependency string format validators.

Index

Constants

View Source
const (
	KSlug      types.Kind = "slug"
	KSemVer    types.Kind = "semver"
	KJSON      types.Kind = "json"
	KJWT       types.Kind = "jwt"
	KBase64    types.Kind = "base64"
	KBase64URL types.Kind = "base64url"
	KHex       types.Kind = "hex"
	KMAC       types.Kind = "mac"
	KE164      types.Kind = "e164"
	KFQDN      types.Kind = "fqdn"
	KDate      types.Kind = "date"
	KRFC3339   types.Kind = "rfc3339"
	KLuhn      types.Kind = "luhn"
)
View Source
const (
	CodeSlugInvalid      = verrs.CodeStringSlugInvalid
	CodeSemVerInvalid    = verrs.CodeStringSemVerInvalid
	CodeJSONInvalid      = verrs.CodeStringJSONInvalid
	CodeJWTInvalid       = verrs.CodeStringJWTInvalid
	CodeBase64Invalid    = verrs.CodeStringBase64Invalid
	CodeBase64URLInvalid = verrs.CodeStringBase64URLInvalid
	CodeHexInvalid       = verrs.CodeStringHexInvalid
	CodeMACInvalid       = verrs.CodeStringMACInvalid
	CodeE164Invalid      = verrs.CodeStringE164Invalid
	CodeFQDNInvalid      = verrs.CodeStringFQDNInvalid
	CodeDateInvalid      = verrs.CodeStringDateInvalid
	CodeRFC3339Invalid   = verrs.CodeStringRFC3339Invalid
	CodeLuhnInvalid      = verrs.CodeStringLuhnInvalid
)

Variables

This section is empty.

Functions

func DefaultDomainTranslations

func DefaultDomainTranslations() map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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