domain

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: 10 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 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