testmurmur3.go 304 B

123456789101112131415
  1. package main
  2. import(
  3. "fmt"
  4. "hash"
  5. "github.com/spaolacci/murmur3"
  6. )
  7. func main(){
  8. var h64 hash.Hash64 = murmur3.New64()
  9. //h64.Write([]byte("hello world"))
  10. //fmt.Printf("hello world is %x\n",h64.Sum64())
  11. h64.Write([]byte("/person130203000000000001"))
  12. fmt.Printf("/person刘六 %x\n",h64.Sum64())
  13. }