Which driver should I use to work with mongodb

I am bit confuse about which driver should I use to work with mongodb.

  1. go.mongodb.org/mongo-driver/mongo
  2. “gopkg.in/mgo.v2”

I think it is better to use the official driver as it will always be updated and it is unlikely that when a new version of go is released, you will have to change something.
and the implementation is more for me to work with ObjectId

Thank You

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.