punycode

package
v0.0.0-...-d084eee Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "2.1.0"

Variables

View Source
var Ucs2 = ucs2Namespace{}

Functions

func Decode

func Decode()

func Encode

func Encode(input string) string

Converts a string of unicode symbols (like a domain name part) to a punycode string of ASCII symbols. This operation is not idempotent. Calling it on a completely ASCII string will always append a hyphen to the end.

func ToAscii

func ToAscii(input string) string

Converts a unicode string of a domain name or email address to punycode. Only the non-ASCII parts of the domain name will be converted. This operation is idempotent.

func ToUnicode

func ToUnicode()

Types

This section is empty.

Jump to

Keyboard shortcuts

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