Documentation
¶
Index ¶
- Constants
- Variables
- func Each(ctx context.Context, frontmatter map[string]any, rootDirectory string, ...) iter.Seq2[map[string]any, error]
- func EachUnique(in iter.Seq2[map[string]any, error]) iter.Seq2[map[string]any, error]
- func New(m map[string]any) (result mail.Address, err error)
- func ValidateFormat(emailAddress string) error
- type ExecutableCommandError
Constants ¶
View Source
const ( // RFC 3696 Errata 1690 MaximumLength = 254 FieldName = "name" FieldEmail = "email" FieldFrom = "from" FieldTo = "to" FieldCarbonCopy = "cc" FieldBlindCarbonCopy = "bcc" )
Variables ¶
View Source
var ( ErrAbsentEmailAddress = errors.New("absent email address") ErrEmailAddressTooLong = errors.New("email address too long") ErrEmailAddressInvalid = errors.New("email address is in the wrong format") )
<https://ayada.dev/posts/validate-email-address-in-go/>
W3C has provided [recommendation](https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email)) on the valid email address syntax. It also provides a regular expression that can be used to validate the syntax of the email address:
Functions ¶
func EachUnique ¶
func ValidateFormat ¶
Types ¶
type ExecutableCommandError ¶ added in v0.1.8
func (ExecutableCommandError) Error ¶ added in v0.1.8
func (err ExecutableCommandError) Error() string
Click to show internal directories.
Click to hide internal directories.