package
Version:
v0.0.0-...-8956429
Opens a new window with list of versions in this module.
Published: Nov 25, 2013
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package cksum implements the legacy unix core util cksum
cksum is also known as POSIX cksum, UNIX cksum
The size of a cksum value
Cksum returns the cksum value of a given byte array
data := []byte("Go is expressive, concise, clean, and efficient.")
fmt.Printf("cksum: %d", Cksum(data))
Output:
cksum: 1937373249
New returns a new hash.Hash computing the cksum value
c := New()
io.WriteString(c, "Go is an open source programming environment.")
fmt.Printf("cksum: %d", c.Sum32())
Output:
cksum: 3621830076
Source Files
¶
Click to show internal directories.
Click to hide internal directories.