Browse Source

add document for temporary API:DNSResolverFunc, DNSResolverFunc

Shelikhoo 4 years ago
parent
commit
00a4551637
1 changed files with 6 additions and 1 deletions
  1. 6 1
      transport/internet/system_dns_android.go

+ 6 - 1
transport/internet/system_dns_android.go

@@ -3,14 +3,19 @@
 package internet
 
 import (
-	"context"
 	"net"
 )
 
 const SystemDNS = "8.8.8.8:53"
 
+/* DNSResolverFunc
+   This is a temporary API and is subject to removal at any time.
+*/
 type DNSResolverFunc func() *net.Resolver
 
+/* NewDNSResolver
+   This is a temporary API and is subject to removal at any time.
+*/
 var NewDNSResolver DNSResolverFunc = func() *net.Resolver {
 	return &net.Resolver{
 		PreferGo: true,