File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,15 @@ The MongoDB supported driver for Go.
2828-------------------------
2929## Installation
3030
31- The recommended way to get started using the MongoDB Go driver is by using ` dep ` to install the dependency in your project.
31+ The recommended way to get started using the MongoDB Go driver is by using go modules to install the dependency in
32+ your project. This can be done either by importing packages from ` go.mongodb.org/mongo-driver ` and having the build
33+ step install the dependency or by explicitly running
34+
35+ ``` bash
36+ go get go.mongodb.org/mongo-driver/mongo
37+ ```
38+
39+ When using a version of Go that does not support modules, the driver can be installed using ` dep ` by running
3240
3341``` bash
3442dep ensure -add " go.mongodb.org/mongo-driver/mongo"
You can’t perform that action at this time.
0 commit comments