From b0a9805be915d7a0f1bcd0e80ef32c23ea639362 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 4 Jul 2011 21:32:39 +0200 Subject: [PATCH] Documentation --- clientconfig.go | 4 ++-- dns.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clientconfig.go b/clientconfig.go index fb905b76..85243782 100644 --- a/clientconfig.go +++ b/clientconfig.go @@ -15,7 +15,7 @@ import ( "net" ) -// Wrap the contents of the /etc/resolv.conf. +// Wraps the contents of the /etc/resolv.conf. type ClientConfig struct { Servers []string // servers to use Search []string // suffixes to append to local name @@ -27,7 +27,7 @@ type ClientConfig struct { // See resolv.conf(5) on a Linux machine. // Parse a /etc/resolv.conf like file and return a filled out ClientConfig. Note -// that all nameservers will have the port number appendend (:53) +// that all nameservers will have the default port number appended (:53) func ClientConfigFromFile(conf string) (*ClientConfig, os.Error) { file, err := os.Open(conf) defer file.Close() diff --git a/dns.go b/dns.go index 58eba642..6fc97e90 100644 --- a/dns.go +++ b/dns.go @@ -31,10 +31,10 @@ // m1.Question[0] = Question{"miek.nl", TypeDNSKEY, ClassINET} // // -// Basic use pattern for synchronize querying of the DNS using -// UDP as the protocol. +// Basic use pattern for synchronize querying of the DNS // // c := dns.NewClient() +// // c.Net = "tcp" // If you want to use TCP // in := c.Exchange(m, "127.0.0.1:53") // package dns