code: func ExtractAddressFromReverse(reverseName string) string {
  	search := ""
  
  	f := reverse
  
  	switch {
  	case strings.HasSuffix(reverseName, v4arpaSuffix):
  		search = strings.TrimSuffix(reverseName, v4arpaSuffix)
  	case strings.HasSuffix(reverseName, v6arpaSuffix):
  		search = strings.TrimSuffix(reverseName, v6arpaSuffix)
  		f = reverse6
  	default:
  		return ""
  	}
  
  	// Reverse the segments and then combine them.
  	return f(strings.Split(search, "."))
  }
docs: // ExtractAddressFromReverse turns a standard PTR reverse record name
  // into an IP address. This works for ipv4 or ipv6.
  //
  // 54.119.58.176.in-addr.arpa. becomes 176.58.119.54. If the conversion
  // fails the empty string is returned.