tangs b030ce89ca openbilibili 5 years ago
..
BUILD.bazel b030ce89ca openbilibili 5 years ago
LICENSE b030ce89ca openbilibili 5 years ago
README.md b030ce89ca openbilibili 5 years ago
circle.yml b030ce89ca openbilibili 5 years ago
murmur.go b030ce89ca openbilibili 5 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)
}