Update docs for formatting in godoc.

This commit is contained in:
Eugene Bujak 2018-12-05 12:52:23 +03:00
parent 09fb539875
commit 8396dc2fdb
2 changed files with 21 additions and 20 deletions

View File

@ -13,7 +13,8 @@ import (
"github.com/miekg/dns"
)
// Server is the main way to start a DNS server
// Server is the main way to start a DNS server.
//
// Example:
// s := dnsforward.Server{}
// err := s.Start(nil) // will start a DNS server listening on default port 53, in a goroutine

View File

@ -10,7 +10,7 @@ import (
"github.com/joomcode/errorx"
)
// upstream TLS pool.
// Upstream TLS pool.
//
// Example:
// pool := TLSPool{Address: "tls://1.1.1.1:853"}