var num uint32 = 1000
比如 num=1000 怎么转成 [232 3 0 0]
[232 3 0 0]又如何转成1000?
```golang
bs := make([]byte, 4)
binary.LittleEndian.PutUint32(bs, 1000)
fmt.Println(bs)
fmt.Println(binary.LittleEndian.Uint32([]byte{232, 3, 0, 0}))
```
#3
更多评论