HUGO
Menu
GitHub 90265 stars Mastodon

hash.XxHash

Returns the 64-bit xxHash non-cryptographic hash of the given string.
Syntax
hash.XxHash STRING
Returns
string
Alias
xxhash

Usage

The hash.XxHash function returns the 64-bit xxHash non-cryptographic hash of the given string, as a hexadecimal string.

xxHash is a fast non-cryptographic hash algorithm. Hugo uses this Go implementation.

Examples

{{ hash.XxHash "Hello world" }} → c500b0c912b376d8