我有一个消息字节缓冲区,我想在缓冲区末尾附加一个字节
我试图像这样追加:
append(message.Buf, 0xff)
first argument to append must be slice; have *bytes.Buffer
append(0xff,message.Buf)
first argument to append must be slice; have untyped number
我应该如何使0xff作为要附加的切片呢?