doc: some function/vars/const/package level updates (#1558)

* doc: some function/vars/const/package level updates

Various update that stood out while reading godoc.org for CoreDNS.

* Fix some misspellings as well
This commit is contained in:
Miek Gieben
2018-02-23 15:02:05 +00:00
committed by GitHub
parent e3b7beab6a
commit 455040c143
9 changed files with 12 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
// Package fuzz contains functions that enable fuzzing of plugins.
package fuzz
import (

View File

@@ -1,3 +1,4 @@
// Package parse contains functions that can be used in the setup code for plugins.
package parse
import (

View File

@@ -6,8 +6,7 @@ import (
"github.com/miekg/dns"
)
// ToString convert the rcode to the official DNS string, or to "RCODE"+value if the RCODE
// value is unknown.
// ToString convert the rcode to the official DNS string, or to "RCODE"+value if the RCODE value is unknown.
func ToString(rcode int) string {
if str, ok := dns.RcodeToString[rcode]; ok {
return str

View File

@@ -1,3 +1,5 @@
// Package up is used to run a function for some duration. If a new function is added while a previous run is
// still ongoing, nothing new will be executed.
package up
import (