On Tue, Aug 20, 2019 at 3:17 PM Pierre Durand <pierredur...@gmail.com> wrote: > > 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.
md5 hash is an array type and can be used as a map key directly: https://golang.org/pkg/crypto/md5/#Sum Example: https://play.golang.org/p/qp-LFWh2Jln -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-XHXyf4qEeGEVCR2-86wUWzWTnA2y4myjJBZbaCfcAUdA%40mail.gmail.com.