Hi, Cleaned this up and put it in a repo... just in case someone else might find it useful, as well:
https://github.com/npat-efault/crc16 Package crc16 is a Golang implementation of the 16-bit Cyclic Redundancy Check, or CRC-16 checksum. The package's API is almost identical to the standard-library's hash/crc32 and hash/crc64 packages. Package crc16 supports CRC calculation in all possible configurations: Polynomial, bit-order, byte-order, initial value, and final value can all be selected. Predefined configurations are supplied for the most common uses (e.g. PPP, X25, Modbus, etc). Enjoy /npat -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.