会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
GopherStudy
An PHPer、Gopher
博客园
首页
新随笔
联系
订阅
管理
2020年6月4日
Golang 使用 JSON unmarshal() 序列化 int 被转成 float64 类型
摘要: 使用 Golang 解析 JSON 格式数据时,若以 interface{} 接收数字成员,则会按照下列规则进行解析,可见 使用 Golang 对 JSON 结构进行解析(unmarshal)时,JSON 结构中的数字会被解析为 float64 类型: bool, for JSON booleans
阅读全文
posted @ 2020-06-04 10:19 GopherStudy
阅读(4165)
评论(0)
推荐(0)
编辑
公告