hash

package
v0.0.0-...-ad801e6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesHashFn

type BytesHashFn func(b []byte) Hash

BytesHashFn hashes a byte slice into a hash.

type Hash

type Hash uint64

Hash is the hash type.

func BytesHash

func BytesHash(d []byte) Hash

BytesHash returns the hash of a byte slice.

func StringArrayHash

func StringArrayHash(d []string, sep byte) Hash

StringArrayHash returns the hash of a string array with a separator.

func StringHash

func StringHash(s string) Hash

StringHash returns the hash of a string.

type StringArrayHashFn

type StringArrayHashFn func(strs []string) Hash

StringArrayHashFn hashes a string array into a hash.

Jump to

Keyboard shortcuts

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