partial update using mgo
问题 I have the following problem. I need to convert a structure to map[string]interface{} in order to perform an update in database (using mgo as driver for mongodb). Update For partially updating a document in mongoDB, the (optimal) solution is to convert to a map and delete the unwanted fields. For converting from struct to map please refer to my other post Original Post I receive the data from client side javascript and write in the my struct model. But I don't want to change/update some