hash

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package hash provides FNV-1a hashing utilities for keys and byte slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(h1, h2 uint64) uint64

Combine combines two hash values into one using a boost-style hash combining function. This is useful for building composite hash keys.

func Hash

func Hash(key string) uint64

Hash returns the FNV-1a 64-bit hash of the given string key.

func HashBytes

func HashBytes(data []byte) uint64

HashBytes returns the FNV-1a hash of the given byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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