go-common/vendor/github.com/go-ego/murmur
2019-04-22 02:59:20 +00:00
..
BUILD.bazel init 2019-04-22 02:59:20 +00:00
circle.yml init 2019-04-22 02:59:20 +00:00
LICENSE init 2019-04-22 02:59:20 +00:00
murmur.go init 2019-04-22 02:59:20 +00:00
README.md init 2019-04-22 02:59:20 +00:00

murmur

CircleCI Status codecov Build Status Go Report Card GoDoc Release Join the chat at https://gitter.im/go-ego/ego

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)
}