doc tweak

This commit is contained in:
Miek Gieben 2012-03-03 18:07:36 +01:00
parent df6d86e937
commit 536ac17f11
1 changed files with 3 additions and 5 deletions

8
dns.go
View File

@ -51,13 +51,11 @@
// m1.Question[0] = Question{"miek.nl.", TypeMX, ClassINET}
//
// After creating a message it can be send.
// Basic use pattern for synchronous querying the DNS:
// Basic use pattern for synchronous querying the DNS at a
// server configured on 127.0.0.1 and port 53:
//
// // We are sending the message 'm' to the server 127.0.0.1
// // on port 53 and wait for the reply.
// c := NewClient()
// // c.Net = "tcp" // If you want to use TCP
// in := c.Exchange(m, "127.0.0.1:53")
// in := c.Exchange(m1, "127.0.0.1:53")
//
// An asynchronous query is also possible, setting up is more elaborate then
// a synchronous query. The Basic use pattern is: