hashutil

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package hashutil provides NON-CRYPTOGRAPHIC utility functions for hashing.

http://cyan4973.github.io/xxHash/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(v interface{}) (uint64, error)

Hash returns the xxhash of an arbitrary value or struct. NOT SUITABLE FOR CRYTOGRAPHIC HASHING.

func MustHash added in v0.11.0

func MustHash(v interface{}) uint64

MustHash returns the xxhash of an arbitrary value or struct. Returns 0 on error. NOT SUITABLE FOR CRYTOGRAPHIC HASHING.

Types

This section is empty.

Jump to

Keyboard shortcuts

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