mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
新增示例
This commit is contained in:
@@ -90,6 +90,6 @@ func Test_Example(t *testing.T) {
|
|||||||
selector1 := bson.M{"_id":bson.ObjectIdHex("60473de655f1012e7453b369")}
|
selector1 := bson.M{"_id":bson.ObjectIdHex("60473de655f1012e7453b369")}
|
||||||
update1 := bson.M{"$set":bson.M{"name":"xxxxx","age":1111}}
|
update1 := bson.M{"$set":bson.M{"name":"xxxxx","age":1111}}
|
||||||
c.Update(selector1,update1)
|
c.Update(selector1,update1)
|
||||||
|
|
||||||
fmt.Println(info,uErr)
|
fmt.Println(info,uErr)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user