摘要: reset the bytes.Buffer https://stackoverflow.com/questions/70302406/failed-unmarshal-for-xxx-invalid-character-after-top-level-value 阅读全文
posted @ 2022-05-04 23:13 铸剑非攻 阅读(342) 评论(0) 推荐(0)
摘要: 从blockchain上拿下来的数据(byte)用自定义的decodeToXXXStruct解析 和json.Unmarshal交替尝试使用 func DecodeToCostInfo(s []byte) CostInfo { p := CostInfo{} dec := gob.NewDecode 阅读全文
posted @ 2022-05-04 23:12 铸剑非攻 阅读(469) 评论(0) 推荐(0)
摘要: result of a syntax error in the JSON input (likely a missing ", }, or ]). https://stackoverflow.com/questions/27994327/golang-json-unmarshal-unexpecte 阅读全文
posted @ 2022-05-04 22:22 铸剑非攻 阅读(394) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/28264343/json-unmarshal-return-nil 阅读全文
posted @ 2022-05-04 22:19 铸剑非攻 阅读(137) 评论(0) 推荐(0)