...This can be done either by importing packages from go.mongodb.org/mongo-driver and having the build step install the dependency. When using a version of Go that does not support modules, the driver can be installed using dep. To get started with the driver, import the mongo package and create a mongo.Client with the Connect function. For more advanced configuration and authentication, see the documentation for mongo. To insert a document into a collection, first retrieve a Database and then Collection instance from the Client. The Collection instance can then be used to insert documents. The driver tests can be run against several database configurations. ...