Package crc16 implements the 16-bit Cyclic Redundancy Check
Download:
go get 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).
(See also)