unixsums

package module
v0.0.0-...-8956429 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2013 License: MIT Imports: 1 Imported by: 0

README

Unixsums is an implementation of the legacy checksum utils (cksum, sum) in Go Language.


Build Status GoDoc

Checksum functions provided

  • bsdsum (BSD checksum, sum, UNIXsum)
  • cksum (UNIX cksum, POSIX cksum)
  • sysvsum (UNIX SystemV sum, SYSV checksum, sum -s)

API Documentation

Implementing hash.Hash.
Documentation currently available at Godoc: http://godoc.org/github.com/cxmcc/unixsums

Installing

go get github.com/cxmcc/unixsums

Example

package main

import "github.com/cxmcc/unixsums/cksum"
import "fmt"
import "io"

func main() {
  h := cksum.New()
  io.WriteString(h, "Go is expressive, concise, clean, and efficient.")
  fmt.Printf("cksum: %d", h.Sum32())
  // Output: cksum: 1937373249
}

License

It's MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash16

type Hash16 interface {
	hash.Hash
	Sum16() uint16
}

Directories

Path Synopsis
Package bsdsum implements the BSD checksum algorithm BSD checksum is also known as UNIX sum
Package bsdsum implements the BSD checksum algorithm BSD checksum is also known as UNIX sum
Package cksum implements the legacy unix core util cksum cksum is also known as POSIX cksum, UNIX cksum
Package cksum implements the legacy unix core util cksum cksum is also known as POSIX cksum, UNIX cksum
Package bsdsum implements the SYSV checksum algorithm SYSV checksum is also known as UNIX SYStem V checksum, sum -s
Package bsdsum implements the SYSV checksum algorithm SYSV checksum is also known as UNIX SYStem V checksum, sum -s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL