Go Json 序列化笔记
在开发过程中 对 Json 的序列化 是经常要使用到的功能,而Golang 自带的 反序列化 在开发中经常 使用。
type Order struct {
Id uint32`json:"json"`
Productname string `json:"productname"`
Price float64 `json:"price"`
Cratedate time.Time `json:"cratedate"`
}
对于 实体数据 或数据库表 我们经常需要声明 结构体来实现建模。
原创
2020-10-01 12:24:35 ·
364 阅读 ·
0 评论