如何优雅解析http response结构体?

Dear · 2022-03-04 10:48:47 · 1658 次点击

然后用map来解析 app里的json? 没有更好的方案?

#2
更多评论

type AutoGenerated struct { Resp Resp json:"resp" } type Resp struct { RespCode string json:"respCode" RespMsg string json:"respMsg" App interface{}json:"app" }

#1