Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vcaesar/murmur
Go Murmur3 hash implementation
https://github.com/vcaesar/murmur
go murmur
Last synced: about 2 months ago
JSON representation
Go Murmur3 hash implementation
- Host: GitHub
- URL: https://github.com/vcaesar/murmur
- Owner: vcaesar
- License: apache-2.0
- Created: 2017-06-25T07:27:51.000Z (over 7 years ago)
- Default Branch: dev
- Last Pushed: 2021-10-01T14:12:36.000Z (about 3 years ago)
- Last Synced: 2024-10-14T21:57:52.831Z (about 2 months ago)
- Topics: go, murmur
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 27
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - murmur
README
# murmur
[![Build Status](https://github.com/vcaesar/murmur/workflows/Go/badge.svg)](https://github.com/vcaesar/murmur/commits/master)
[![CircleCI Status](https://circleci.com/gh/vcaesar/murmur.svg?style=shield)](https://circleci.com/gh/vcaesar/murmur)
[![codecov](https://codecov.io/gh/vcaesar/murmur/branch/master/graph/badge.svg)](https://codecov.io/gh/vcaesar/murmur)
[![Build Status](https://travis-ci.org/vcaesar/murmur.svg)](https://travis-ci.org/vcaesar/murmur)
[![Go Report Card](https://goreportcard.com/badge/github.com/vcaesar/murmur)](https://goreportcard.com/report/github.com/vcaesar/murmur)
[![GoDoc](https://godoc.org/github.com/vcaesar/murmur?status.svg)](https://godoc.org/github.com/vcaesar/murmur)
[![Release](https://github-release-version.herokuapp.com/github/vcaesar/murmur/release.svg?style=flat)](https://github.com/vcaesar/murmur/releases/latest)
[![Join the chat at https://gitter.im/vcaesar/ego](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vcaesar/ego?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Go Murmur3 hash implementation
## Installing
```Go
go get -u github.com/vcaesar/murmur
```## Use
```Go
package mainimport (
"log""github.com/vcaesar/murmur"
)func main() {
var str = "github.com/vcaesar/murmur"sum32 := murmur.Sum32(str)
log.Println("hash32: ", sum32)sum32 = murmur.Sum32(str, 0)
log.Println("hash32: ", hash32)hash32 := murmur.Murmur3([]byte(str))
log.Println("hash32...", hash32)hash32 = murmur.Murmur3([]byte(str), 1)
log.Println("hash32...", hash32)
}
```Based on [MurmurHash](http://en.wikipedia.org/wiki/MurmurHash), thanks for murmur3.