mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
@@ -1,3 +1,4 @@
|
||||
// Package fuzz contains functions that enable fuzzing of plugins.
|
||||
package fuzz
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Package parse contains functions that can be used in the setup code for plugins.
|
||||
package parse
|
||||
|
||||
import (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user