hash

package
v9.1.81+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modulo

func Modulo(sha string, num int) int

Modulo returns the modulo of sha value into num

func Values

func Values(objects ...interface{}) string

Values will convert all objects to a string and return a SHA256 of the concatenated values. Uses xxhash to calculate a faster hash value that is not cryptographically secure but is OK since we use hashing mainfully for generating consistent key values or equality checks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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