package idna

import "github.com/coreos/etcd/third_party/code.google.com/p/go.net/idna"

Package idna implements IDNA2008 (Internationalized Domain Names for Applications), defined in RFC 5890, RFC 5891, RFC 5892, RFC 5893 and RFC 5894.

Index

Functions

func ToASCII

func ToASCII(s string) (string, error)

ToASCII converts a domain or domain label to its ASCII form. For example, ToASCII("bücher.example.com") is "xn--bcher-kva.example.com", and ToASCII("golang") is "golang".

func ToUnicode

func ToUnicode(s string) (string, error)

ToUnicode converts a domain or domain label to its Unicode form. For example, ToUnicode("xn--bcher-kva.example.com") is "bücher.example.com", and ToUnicode("golang") is "golang".

Source Files

idna.go punycode.go

Version
v0.2.0-rc0
Published
Oct 17, 2013
Platform
windows/amd64
Imports
4 packages
Last checked
2 hours ago

Tools for package owners.