I created the following test code. To isolate the compile error.Why do i get the error message :cannot use messageBody (type []byte) as type byte in append.
func encodeMessage(messageBody []byte) ([]byte) {tmp,_ := hex.DecodeString(fmt.Sprintf("AB000300000000007F0100"))DataResponse := append(tmp, messageBody)