File: doc_test.go

package info (click to toggle)
golang-github-leemcloughlin-gofarmhash 0.0~git20160919.0.0a055c5-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 116 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
package farmhash

import "fmt"

func ExampleHash32() {
	str := "hello world"
	bytes := []byte(str)
	hash := Hash32(bytes)
	fmt.Printf("Hash32(%s) is %x\n", str, hash)
}