tangs b030ce89ca openbilibili 5 gadi atpakaļ
..
BUILD.bazel b030ce89ca openbilibili 5 gadi atpakaļ
LICENSE b030ce89ca openbilibili 5 gadi atpakaļ
README.md b030ce89ca openbilibili 5 gadi atpakaļ
circle.yml b030ce89ca openbilibili 5 gadi atpakaļ
murmur.go b030ce89ca openbilibili 5 gadi atpakaļ

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