validators

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailResult

type EmailResult struct {
	Valid  bool
	Error  string
	Domain string // The domain part of the email (if valid format)
}

EmailResult holds the result of email validation.

func Email

func Email(value string, checkMX bool) EmailResult

Email validates an email address. If checkMX is true, it verifies the domain has MX records.

Jump to

Keyboard shortcuts

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