Go 1.10 adds MarshalBinary and UnmarshalBinary to each of the hash.Hash implementations. You can use those to effectively copy the hash structure.
However, I doubt you would get a performance benefit for a string only 64 bytes long. JT On Wednesday, November 8, 2017 at 9:47:33 AM UTC-8, Christian LeMoussel wrote: > > I found why.. hash.Hash <https://golang.org/src/hash/hash.go> interface > does not have a .Copy, > > -- 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. For more options, visit https://groups.google.com/d/optout.