//整形转换成字节
func IntToBytes(n int) []byte {
x := int32(n)
bytesBuffer := bytes.NewBuffer([]byte{
go int转byte
最新推荐文章于 2024-05-11 10:39:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
//整形转换成字节
func IntToBytes(n int) []byte {
x := int32(n)
bytesBuffer := bytes.NewBuffer([]byte{