I tried doing this but it didn't work.
update := bson.D{{ "$set": bson.D{ "id": "Q" + addr_to_string }, {"$inc": bson.D{ "amount": amount_int } }}}
Error:
mixture of field:value and value elements in struct literal
This is my initial code:
update := bson.D{{"$set", bson.D{{"id", "Q" + addr_to_string}, {"amount", amount_int}}}}
I try to make amount increment, $inc. How can i do this?