[go-每日一库] golang借助json库实现struct/map与json的互转
摘要:
话不多说,直接上代码。 1.功能函数 // json -> struct/map, dst should be ptr func Json2StructOrMap(raw string, dst interface{}) { _ = json.Unmarshal([]byte(raw), &dst) 阅读全文
posted @ 2022-06-24 16:00 进击的davis 阅读(243) 评论(0) 推荐(0) 编辑