package
0.0.0-20220628045418-2e6a22a86d64
Repository: https://github.com/ugwis/golang-net.git
Documentation: pkg.go.dev

# Functions

BidiRule enables the Bidi rule as defined in RFC 5893.
CheckHyphens sets whether to check for correct use of hyphens ('-') in labels.
CheckJoiners sets whether to check the ContextJ rules as defined in Appendix A of RFC 5892, concerning the use of joiner runes.
MapForLookup sets validation and mapping options such that a given IDN is transformed for domain name lookup according to the requirements set out in Section 5 of RFC 5891.
New creates a new Profile.
RemoveLeadingDots removes leading label separators.
StrictDomainName limits the set of permissible ASCII characters to those allowed in domain names as defined in RFC 1034 (A-Z, a-z, 0-9 and the hyphen).
ToASCII is a wrapper for Punycode.ToASCII.
ToUnicode is a wrapper for Punycode.ToUnicode.
Transitional sets a Profile to use the Transitional mapping as defined in UTS #46.
ValidateForRegistration sets validation options to verify that a given IDN is properly formatted for registration as defined by Section 4 of RFC 5891.
ValidateLabels sets whether to check the mandatory label validation criteria as defined in Section 5.4 of RFC 5891.
VerifyDNSLength sets whether a Profile should fail if any of the IDN parts are longer than allowed by the RFC.

# Constants

UnicodeVersion is the Unicode version from which the tables in this package are derived.

# Variables

Display is the recommended profile for displaying domain names.
Lookup is the recommended profile for looking up domain names, according to Section 5 of RFC 5891.
Punycode is a Profile that does raw punycode processing with a minimum of validation.
Registration is the recommended profile for checking whether a given IDN is valid for registration, according to Section 4 of RFC 5891.

# Structs

A Profile defines the configuration of an IDNA mapper.

# Type aliases

An Option configures a Profile at creation time.