A simple consistent hasing utility in Golang
Core of the logic is in the interfaces file. You can use any data type and any hash functions to run your code.
Steps to use:
- Define your data type.
- Implement the data interface by writing a Data() function.
- Create an empty struct and implement the hasher function.
- Make external config and call the necessary functions from the interface