code: func GenerateChecksum(data []byte) byte {
  	var offset int
  	ret := data[offset]
  	for i := offset + 1; i < len(data)-1; i++ {
  		// Xor bytes
  		ret ^= data[i]
  	}
  	// Not result
  	ret = (byte)(^ret)
  	return ret
  }
docs: // GenerateChecksum calculates the checksum for a serialapi message