algorithm 算法模块
crc16_test.go crc16算法
TestCrc16
t.Log(Crc16([]byte("abcdefg汉字")))
TestCrc16s
t.Log(Crc16s("abcdefg汉字") == Crc16([]byte("abcdefg汉字")))
descartes_test.go 笛卡尔组合
TestDescartes
result := DescartesCombine([][]string{{"A", "B"}, {"1", "2", "3"}, {"a", "b", "c", "d"}})
for _, item := range result {
t.Log(item)
}