阅读背景:

如何在Go中自定义JSON编码输出?

来源:互联网 

I want to customize encoding format of a struct but got error: json: error calling MarshalJSON for type main.Info: invalid character 'o' in literal false (expecting 'a') What's wrong with my code?I want to customize encoding format of a struct




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

分享到: