Go Migration Guide
MongoDB has released an official driver for the Go language that is appropriate for all supported database operations. This driver implements the
Core and API specs
, and supports MongoDB 3.2 and above.
Many developers have been using community contributed golang drivers such as mgo and variants or forks of it. Developers who are interested in migrating to the official MongoDB Go driver have many considerations when approaching a migration of their application code. This migration guide is intended to provide guidance on some commonly found differences in client code when using the MongoDB Go Driver, and present potential actions to be taken during a migration.
December 13, 2018