Documentation ¶
Overview ¶
Package hashing provides common hashing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashString ¶
HashString returns a hash from the given elements. It will panic if the hash cannot be calculated. Note that this hash should be used primarily for identity, not for change detection as it in the more complex values (e.g. Page) will not hash the full content.
func HashUint64 ¶
HashUint64 returns a hash from the given elements. It will panic if the hash cannot be calculated. Note that this hash should be used primarily for identity, not for change detection as it in the more complex values (e.g. Page) will not hash the full content.
func MD5FromStringHexEncoded ¶
MD5FromStringHexEncoded returns the MD5 hash of the given string.
func XXHashFromReader ¶
XXHashFromReader calculates the xxHash for the given reader.
func XXHashFromString ¶
XXHashFromString calculates the xxHash for the given string.
func XxHashFromStringHexEncoded ¶
XxHashFromStringHexEncoded calculates the xxHash for the given string and returns the hash as a hex encoded string.
Types ¶
This section is empty.