| 1 |
--- |
| 2 |
title: hash.XxHash |
| 3 |
description: Returns the 64-bit xxHash non-cryptographic hash of the given string. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
params: |
| 7 |
functions_and_methods: |
| 8 |
aliases: [xxhash] |
| 9 |
returnType: string |
| 10 |
signatures: [hash.XxHash STRING] |
| 11 |
--- |
| 12 |
|
| 13 |
```go-html-template |
| 14 |
{{ hash.XxHash "Hello world" }} → c500b0c912b376d8 |
| 15 |
``` |
| 16 |
|
| 17 |
[xxHash][] is an exceptionally fast non-cryptographic hash algorithm. Hugo uses [this Go implementation][]. |
| 18 |
|
| 19 |
[this Go implementation]: https://github.com/cespare/xxhash |
| 20 |
[xxHash]: https://xxhash.com/ |