idntranslator

package
v4.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToASCII

func ToASCII(unicodeString string, transitionalProcessing ...bool) string

ToASCII converts a Unicode string to Punycode format.

func ToUnicode

func ToUnicode(asciiString string, transitionalProcessing ...bool) string

ToUnicode converts a domain string to Unicode format.

Types

type Row

type Row struct {
	IDN      string
	PUNYCODE string
}

Row represents a row in the translation result.

func Convert

func Convert(domainOrDomains interface{}) []Row

Convert converts a domain string or a slice of domain strings between Unicode and Punycode formats.

Jump to

Keyboard shortcuts

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