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 the cespare/xxhash package to compute the hash.
Examples
{{ hash.XxHash "Hello world" }} → c500b0c912b376d8Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page