emailaddress

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineAddress

func CombineAddress(name string, address string) (string, error)

CombineAddress will generate a valid address string from a name part and an address part, ensuring that the address part was valid and did not already have an associated name, and that the resulting combined address parses correctly

Types

type Address

type Address string

Address represents an email address

func (Address) Mask

func (a Address) Mask() string

Mask returns a masked version of an email address

func (Address) Parse

func (a Address) Parse() (*mail.Address, error)

Parse will parse an address according to the RFC 5322 standard, applying additional restrictions we have chosen to enforce

func (Address) Validate

func (a Address) Validate() error

Validate implements the Validatable interface for Address

Jump to

Keyboard shortcuts

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