allurehash

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(v any) uint64

Hash returns a FNV-1a hash of the given value.

Guarantees:

  • Hashes are consistent between function calls and program execution.
  • Hashes of two values are the same if values are equal based on their exported fields.
  • Hashes of two functions are the same if functions share the same signature and name or its absence.
  • Hashes of two different pointers to the same (equal) values are the same.

Pointers are always dereferenced. Pointer cycles are detected and won't halt the execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL