package to hash any comparable type

59 views
Skip to first unread message

Gorka Guardiola

unread,
Nov 13, 2024, 10:48:16 AM11/13/24
to golang-nuts
Hi, I wrote a package to hash any comparable type:



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
Reply all
Reply to author
Forward
0 new messages