murmur3

package module
v0.0.0-...-2374c2e Latest Latest
Warning

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

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

README

Murmur3 for Go

GoDoc

A port of the Murmur3 hash function.

Installing

go get -u github.com/tidwall/murmur3

Example

println(murmur3.Sum32("hello"))
// output: 613153351

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 hash from the provided key.

func Sum32Bytes

func Sum32Bytes(key []byte) uint32

Sum32Bytes returns a hash from the provided key.

func Sum32Seed

func Sum32Seed(key string, seed uint32) uint32

Sum32Seed returns a hash from the provided key using the specified seed.

func Sum32SeedBytes

func Sum32SeedBytes(key []byte, seed uint32) uint32

Sum32SeedBytes returns a hash from the provided key using the specified seed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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