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

Dear · · 1206 次点击
更多评论
type AutoGenerated struct { Resp Resp `json:"resp"` } type Resp struct { RespCode string `json:"respCode"` RespMsg string `json:"respMsg"` App interface{}`json:"app"` }
#1
然后用map来解析 app里的json? 没有更好的方案?
#2