Golang json 序列化与反序列化
步骤说明
反序列化
json.Unmarshal([]byte(item)
func (d *Dao) QueryRobotAll(ctx context.Context) (res []*model.RobotList, err error) { |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Axinの博客!
评论
json.Unmarshal([]byte(item)
func (d *Dao) QueryRobotAll(ctx context.Context) (res []*model.RobotList, err error) { |