You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
root beccf3fe43 init 7 years ago
..
BUILD.bazel init 7 years ago
LICENSE init 7 years ago
README.md init 7 years ago
circle.yml init 7 years ago
murmur.go init 7 years ago

README.md

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