hash

package module
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 4 Imported by: 8

README

hash

Godoc Report Tests Coverage Sponsor

Ultra-fast hashing of bytes, strings and reader contents. The algorithm is meant to be used for cache (in)validation.

Benchmarks

Hash performance benchmarks

Usage

[]byte
x := hash.Bytes([]byte("Hello World"))
string
x := hash.String("Hello World")
io.Reader
x := hash.Reader(file)

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(in []byte) uint64

Bytes hashes the given byte slice.

func Reader added in v0.2.0

func Reader(reader io.Reader) uint64

Reader hashes all the bytes in the given reader.

func String

func String(in string) uint64

String hashes the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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