| 123456789101112131415 |
- package main
- import(
- "fmt"
- "hash"
- "github.com/spaolacci/murmur3"
- )
- func main(){
- var h64 hash.Hash64 = murmur3.New64()
- //h64.Write([]byte("hello world"))
- //fmt.Printf("hello world is %x\n",h64.Sum64())
- h64.Write([]byte("/person130203000000000001"))
- fmt.Printf("/person刘六 %x\n",h64.Sum64())
- }
|