Documentation ¶
Overview ¶
Package normalize contains functions to normalize usernames, domains and addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Addr ¶
Addr normalizes an email address, applying User and Domain to its respective components. On error, it will also return the original address to simplify callers.
func Domain ¶
Domain normalizes a DNS domain into a cleaned UTF-8 form. On error, it will also return the original domain to simplify callers.
func DomainToUnicode ¶
DomainToUnicode takes an address with an ASCII domain, and convert it to Unicode as per IDNA, including basic normalization. The user part is unchanged.
func StringToCRLF ¶ added in v1.15.0
StringToCRLF is like ToCRLF, but operates on strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.