Hi, I wrote a package to hash any comparable type:
https://pkg.go.dev/gitlab.eif.urjc.es/paurea/dohash In contrast to https://github.com/dolthub/maphash it can use any hash function (as long as it implements hash.Hash64) and it does not depend on any internal detail of the runtime. It works by inspecting the type and creating the hasher to be used later. It also lets you hash non-comparable types (ignoring the non-comparable part). If you have any questions or suggestions, please let me know. Enjoy, G. -- - curiosity sKilled the cat -- 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 visit https://groups.google.com/d/msgid/golang-nuts/CACm3i_iYGsLpwTx5E%3DH2JL04F%2B2E3iDtru0279y8MSArgYi%2BAw%40mail.gmail.com.