Skip to content

Commit 5fc229a

Browse files
author
Divjot Arora
authored
GODRIVER-543 Change README to recommend modules (#292)
1 parent feb20c3 commit 5fc229a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3442
dep ensure -add "go.mongodb.org/mongo-driver/mongo"

0 commit comments

Comments
 (0)