x1ongzhu 4750177287 first commit 6 years ago
..
BUILD.bazel 4750177287 first commit 6 years ago
LICENSE 4750177287 first commit 6 years ago
README.md 4750177287 first commit 6 years ago
circle.yml 4750177287 first commit 6 years ago
murmur.go 4750177287 first commit 6 years ago

README.md

murmur

CircleCI Status codecov Build Status Go Report Card GoDoc Release

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