Skip to content

Commit

Permalink
📝 Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
smally84 committed Dec 10, 2021
1 parent 322a1e8 commit fa3d8f5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# crc
crc of golang

crc 校验在物联网数据校验中经常使用,这里封装了crc8和crc16的计算方法。

#### install

`go get -u https://github.com/itmisx/crc`

#### example

````go
// crc8
var data = []byte{0x01,0x02}
crc8 := crc.Crc8(data)
// crc16
var data = []byte{0x01,0x02}
crc16 := crc.Crc16(data)
````

0 comments on commit fa3d8f5

Please sign in to comment.