// Reverseaddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP // address addr suitable for rDNS (PTR) record lookup or an error if it fails // to parse the IP address. func Reverseaddr(addr string) (arpa string, err error) { … } // Convert unsigned integer to decimal string. func uitoa(val uint) string { … } const hexDigit …