.. | ||
BUILD.bazel | ||
circle.yml | ||
LICENSE | ||
murmur.go | ||
README.md |
murmur
Go Murmur3 hash implementation
Based on MurmurHash, murmur.
Installing
go get -u github.com/go-ego/murmur
Use
package main
import (
"log"
"github.com/go-ego/murmur"
)
func main() {
var str = "github.com"
hash32 := murmur.Murmur3([]byte(str))
log.Println("hash32...", hash32)
sum32 := murmur.Sum32(str)
log.Println("hash32...", sum32)
}