如何将json解压缩为包含uint8的结构?我收到错误消息json: cannot unmarshal object into Go struct field A.test of type uint8type A struct {Test uint8 `json:"test omitempty" bson:"test"`我将结构A插入到mongo中,然后成功地进行了mongo查找,并打印
我正在尝试使用AWS SDK GO v2:,并且似乎很难解组Dynamodb.GetItemOutput的mapstringtypes.AttributeValue类型的Item属性。在AWS SDK GO v1中,很容易调用dynamodbattribute.UnmarshalMap(result.Item, &data)来解组结果。但在v2上,我找不到任何方法来做到这一点。