阅读背景:

在Go中,如何将结构转换为字节数组?

来源:互联网 

I have an instance of a struct that I defined and I would like to convert it to an array of bytes. I tried []byte(my_struct), but that did not work. Also, I was pointed to the I have an instance of a struct that I defined a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: