algo

package module
v0.0.0-...-84bb60b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: Unlicense Imports: 1 Imported by: 0

README

Algo - Go hashing algorithms

GoDoc

Algo exposes the same hashing algorithms used by the Go runtime.

Installing

go get -u github.com/tidwall/algo

Example

algo.Sum64("hello")

Contact

Josh Baker @tidwall

License

This is free and unencumbered software released into the public domain.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum32

func Sum32(key string) uint32

Sum32 returns a 32-bit hash for the provided key.

func Sum32Bytes

func Sum32Bytes(key []byte) uint32

Sum32Bytes returns a 32-bit hash for the provided key.

func Sum32BytesSeed

func Sum32BytesSeed(key []byte, seed uint64) uint32

Sum32BytesSeed returns a 32-bit hash for the provided key.

func Sum32Seed

func Sum32Seed(key string, seed uint64) uint32

Sum32Seed returns a 32-bit hash for the provided key.

func Sum64

func Sum64(key string) uint64

Sum64 returns a 64-bit hash for the provided key.

func Sum64Bytes

func Sum64Bytes(key []byte) uint64

Sum64Bytes returns a 64-bit hash for the provided key.

func Sum64BytesSeed

func Sum64BytesSeed(key []byte, seed uint64) uint64

Sum64BytesSeed returns a 64-bit hash for the provided key.

func Sum64Seed

func Sum64Seed(key string, seed uint64) uint64

Sum64Seed returns a 64-bit hash for the provided key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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