Discover Packages
github.com/golang-commonmark/puny
package
module
Version:
v0.0.0-...-050be39
Opens a new window with list of versions in this module.
Published: Sep 10, 2018
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
Package puny provides functions for encoding/decoding to/from punycode.
View Source
var (
ErrOverflow = errors .New ("overflow: input needs wider integers to process")
ErrNotBasic = errors .New ("illegal input >= 0x80 (not a basic code point)")
ErrInvalidInput = errors .New ("invalid input")
)
Decode converts a Punycode string of ASCII-only symbols to a string of Unicode symbols.
Encode converts a string of Unicode symbols (e.g. a domain name label) to a
Punycode string of ASCII-only symbols.
ToASCII converts a Unicode string representing a domain name or an email address to
Punycode. Only the non-ASCII parts of the domain name will be converted.
ToUnicode converts a Punycode string representing a domain name or an email address
to Unicode. Only the Punycoded parts of the input will be converted.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.