Skip to content

Built-in hashers & comparers

Compare
Choose a tag to compare
@benbjohnson benbjohnson released this 22 Sep 21:39
· 53 commits to master since this release
505776e

This release adds built-in Hasher & Comparer types for all int & uint types (e.g. int, int8, int16, etc) as well as stringand[]byte`.

It also includes reflection-based hasher & comparers for int, uint, and string types that have been aliased . For example, reflection based hashers will be used for a type declared like this:

type ID int

Thanks to @adrianboyko for the reflection-based hashers! 🎉