summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/miekg/dns/idn/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/miekg/dns/idn/example_test.go')
-rw-r--r--vendor/github.com/miekg/dns/idn/example_test.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/vendor/github.com/miekg/dns/idn/example_test.go b/vendor/github.com/miekg/dns/idn/example_test.go
deleted file mode 100644
index 8833cd91d..000000000
--- a/vendor/github.com/miekg/dns/idn/example_test.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package idn_test
-
-import (
- "fmt"
- "github.com/miekg/dns/idn"
-)
-
-func ExampleToPunycode() {
- name := "インターネット.テスト"
- fmt.Printf("%s -> %s", name, idn.ToPunycode(name))
- // Output: インターネット.テスト -> xn--eckucmux0ukc.xn--zckzah
-}
-
-func ExampleFromPunycode() {
- name := "xn--mgbaja8a1hpac.xn--mgbachtv"
- fmt.Printf("%s -> %s", name, idn.FromPunycode(name))
- // Output: xn--mgbaja8a1hpac.xn--mgbachtv -> الانترنت.اختبار
-}