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: 0
Opens a new window with list of known importers.
Documentation
¶
Package bsdsum implements the BSD checksum algorithm
BSD checksum is also known as UNIX sum
The size of a BSD checksum value
Bsdsum returns the BSD checksum of the given byte array
data := []byte("Go is expressive, concise, clean, and efficient.")
fmt.Printf("sum: %d", Bsdsum(data))
Output:
sum: 8092
New returns a new hash.Hash computing the BSD checksum value
c := New()
io.WriteString(c, "Go is an open source programming environment.")
fmt.Printf("sum: %d", c.Sum16())
Output:
sum: 16973
Source Files
¶
Click to show internal directories.
Click to hide internal directories.