Back to

Package idna

Latest Go to latest

The latest major version is .

Published: Dec 23, 2013 | Licenses: Apache-2.0 , BSD-3-Clause | Module:


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


func ToASCII

func ToASCII(s string) (string, error)

ToASCII converts a domain or domain label to its ASCII form. For example, ToASCII("bü") is "", 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("") is "bü", and ToUnicode("golang") is "golang".

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier