Standard library / hash
hash.Hash64
Extends Hash with Sum64, a numeric uint64 digest. Use a matching hash algorithm when comparing results. This is not a cryptographic authentication primitive. Expected stdout: 'a430d84680aabd0b\n'.
Formal Syntax & Structure
go syntaxgo
type Hash64 interface { Hash Sum64() uint64}Working Example
Example Snippetgo
package main
import ( "fmt" "hash" "hash/fnv")
func main() { var h hash.Hash64 = fnv.New64a() h.Write([]byte("hello")) fmt.Printf("%016x\n", h.Sum64())}