Code for handling unicode/punycode name conversions v2

Opening new PR for clean commenting
[ Quoting <notifications@github.com> in "Re: [dns] Code for handling unicode..." ]
>> +		return b
>> +	}
>> +	out := make([]rune, 0, len(b))
>> +	b = b[len(_PREFIX):]
>> +	for pos, x := range b {
>> +		if x == _DELIMITER {
>> +			out = append(out, bytes.Runes(b[:pos])...)
>> +			b = b[pos+1:] // trim source string
>> +			break
>> +		}
>> +	}
>> +	if len(b) == 0 {
>> +		return src
>> +	}
>> +	for i := rune(0); len(b) > 0; i++ {
>> +		oldi, w, ch := i, rune(1), byte(0)
>
>I have new idea how to deal with those .... declaring them before loop and re-using same variables.... Should be nanoseconds faster too...

premature optimizations FTW ! :-)

>https://github.com/miekg/dns/pull/129/files#r17538821
/Miek

-- 
Miek Gieben