写一下golang学习笔记吧,
把多个[]byte 连接起来生成新的[]byte
func BytesCombine(pBytes ...[]byte) []byte {
return bytes.Join(pBytes, []byte(""))
}
byte1:=make([]byte,100)
byte2:=make([]byte,100)
rtnByte:=BytesCombine(byte1,byte2)
写一下golang学习笔记吧,
把多个[]byte 连接起来生成新的[]byte
func BytesCombine(pBytes ...[]byte) []byte {
return bytes.Join(pBytes, []byte(""))
}
byte1:=make([]byte,100)
byte2:=make([]byte,100)
rtnByte:=BytesCombine(byte1,byte2)