mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	* doc: some function/vars/const/package level updates Various update that stood out while reading godoc.org for CoreDNS. * Fix some misspellings as well
		
			
				
	
	
		
			16 lines
		
	
	
		
			308 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			308 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package rcode
 | |
| 
 | |
| import (
 | |
| 	"strconv"
 | |
| 
 | |
| 	"github.com/miekg/dns"
 | |
| )
 | |
| 
 | |
| // 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
 | |
| 	}
 | |
| 	return "RCODE" + strconv.Itoa(rcode)
 | |
| }
 |