Documentation ¶
Overview ¶
Package idna2003 implements IDNA as described in RFC 3490.
This package is in beta and has not been extensively tested.
Index ¶
Constants ¶
const (
AcePrefix = "xn--"
)
IDNA section 5
Variables ¶
This section is empty.
Functions ¶
func ToASCII ¶
Converts a Unicode string to ASCII using the procedure in RFC 3490 section 4.1. Unassigned characters are not allowed and STD3 ASCII rules are enforced. The input string may be a domain name containing dots.
func ToUnicode ¶
Converts a Punycode string to Unicode using the procedure in RFC 3490 section 4.2. Unassigned characters are not allowed and STD3 ASCII rules are enforced. The input string may be a domain name containing dots.
ToUnicode never fails. If any step fails, then the original input sequence is returned immediately in that step.
Types ¶
This section is empty.
Notes ¶
Bugs ¶
we should check error value here
We should check error value here
Directories ¶
Path | Synopsis |
---|---|
Package punycode implements encoding and decoding of Punycode sequences.
|
Package punycode implements encoding and decoding of Punycode sequences. |
Package stringprep implements Stringprep as described in RFC 3454, including the Nameprep profile.
|
Package stringprep implements Stringprep as described in RFC 3454, including the Nameprep profile. |