blob: 0064400710e9a072ad77d6b16dbf365c6fca887d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package rcode
import (
"strconv"
"github.com/miekg/dns"
)
func ToString(rcode int) string {
if str, ok := dns.RcodeToString[rcode]; ok {
return str
}
return "RCODE" + strconv.Itoa(rcode)
}
|