idna2003

package
v0.0.0-...-76db0e1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package idna2003 implements IDNA as described in RFC 3490.

This package is in beta and has not been extensively tested.

Index

Constants

View Source
const (
	AcePrefix = "xn--"
)

IDNA section 5

Variables

This section is empty.

Functions

func ToASCII

func ToASCII(label string) (string, error)

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

func ToUnicode(label string) (string, error)

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.

Jump to

Keyboard shortcuts

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