RT 不像mysql,有直接的接口可用,不过可以绕道而行 先生成ID,再插入
import "gopkg.in/mgo.v2/bson" id := bson.NewObjectId() bson.M{"_id": id, ...}