library: hash, hash/crc64
This commit is contained in:
11
_cmptest/crcdemo/crc.go
Normal file
11
_cmptest/crcdemo/crc.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"hash/crc64"
|
||||
)
|
||||
|
||||
func main() {
|
||||
crc := crc64.MakeTable(crc64.ECMA)
|
||||
fmt.Printf("%016x\n", crc64.Checksum([]byte("Hello world"), crc))
|
||||
}
|
||||
Reference in New Issue
Block a user