diff options
author | 2016-09-21 17:01:19 +0100 | |
---|---|---|
committer | 2016-09-21 17:01:19 +0100 | |
commit | 5301c5af5fde0ad5bf063e12decd4c5202047457 (patch) | |
tree | fc9957fc5382285f27c12436b9f4da9aae670548 /middleware/pkg/rcode/rcode.go | |
parent | 7b79458c8a659a4cc8fffb5f678321a0fdd09333 (diff) | |
download | coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.tar.gz coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.tar.zst coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.zip |
Run golint and go vet (#276)
Cleanup the errors and removed deadcode along the way. The leaves
some error laying around, mostly about commenting exported identifier.
We should look hard if those really are needed.
Diffstat (limited to 'middleware/pkg/rcode/rcode.go')
-rw-r--r-- | middleware/pkg/rcode/rcode.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/middleware/pkg/rcode/rcode.go b/middleware/pkg/rcode/rcode.go index 006440071..e871a96ca 100644 --- a/middleware/pkg/rcode/rcode.go +++ b/middleware/pkg/rcode/rcode.go @@ -6,6 +6,8 @@ import ( "github.com/miekg/dns" ) +// ToString convert the rcode to the offical 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 |