Well, in my case I don't want to convert the []byte to hexadecimal string, because it uses 2x more memory.
The code contains a huge map where the key is an MD5 hash.
Please note that I'm not personally working on this.
I was reviewing the code written by a coworker, and I noticed that there was a string variable containing "invalid UTF-8 bytes".
It felt very strange to have a string containing invalid text.
So I have another question: since md5.Sum() is returning a [16]byte, is it better to use [16]byte as a map key ?
Or should I use a string containing invalid text as a map key ?