tangs b030ce89ca openbilibili | 5 lat temu | |
---|---|---|
.. | ||
BUILD.bazel | 5 lat temu | |
LICENSE | 5 lat temu | |
README.md | 5 lat temu | |
circle.yml | 5 lat temu | |
murmur.go | 5 lat temu |
Go Murmur3 hash implementation
Based on MurmurHash, murmur.
go get -u github.com/go-ego/murmur
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)
}