diff options
author | 2018-02-23 15:02:05 +0000 | |
---|---|---|
committer | 2018-02-23 15:02:05 +0000 | |
commit | 455040c1439324d6c53841c9b877e4e7c76df31e (patch) | |
tree | 096de5eb354b1f3e7d19a063e2303cdc3025e822 /plugin/pkg | |
parent | e3b7beab6abd4c725b386ee5a89b344b5d4d413b (diff) | |
download | coredns-455040c1439324d6c53841c9b877e4e7c76df31e.tar.gz coredns-455040c1439324d6c53841c9b877e4e7c76df31e.tar.zst coredns-455040c1439324d6c53841c9b877e4e7c76df31e.zip |
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
Diffstat (limited to 'plugin/pkg')
-rw-r--r-- | plugin/pkg/fuzz/do.go | 1 | ||||
-rw-r--r-- | plugin/pkg/parse/parse.go | 1 | ||||
-rw-r--r-- | plugin/pkg/rcode/rcode.go | 3 | ||||
-rw-r--r-- | plugin/pkg/up/up.go | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/plugin/pkg/fuzz/do.go b/plugin/pkg/fuzz/do.go index 920e8feb7..d4ef87117 100644 --- a/plugin/pkg/fuzz/do.go +++ b/plugin/pkg/fuzz/do.go @@ -1,3 +1,4 @@ +// Package fuzz contains functions that enable fuzzing of plugins. package fuzz import ( diff --git a/plugin/pkg/parse/parse.go b/plugin/pkg/parse/parse.go index cf4f96c09..17d2641ef 100644 --- a/plugin/pkg/parse/parse.go +++ b/plugin/pkg/parse/parse.go @@ -1,3 +1,4 @@ +// Package parse contains functions that can be used in the setup code for plugins. package parse import ( diff --git a/plugin/pkg/rcode/rcode.go b/plugin/pkg/rcode/rcode.go index 32863f0b2..d221bcbd2 100644 --- a/plugin/pkg/rcode/rcode.go +++ b/plugin/pkg/rcode/rcode.go @@ -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 diff --git a/plugin/pkg/up/up.go b/plugin/pkg/up/up.go index 06971eef7..34b23fdad 100644 --- a/plugin/pkg/up/up.go +++ b/plugin/pkg/up/up.go @@ -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 ( |