Skip to content

Commit 1cd18e1

Browse files
author
Jairo Santos
committed
readme: fix missing import
1 parent 023c3eb commit 1cd18e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ dep ensure -add "go.mongodb.org/mongo-driver/mongo@~1.0.0"
4040
To get started with the driver, import the `mongo` package, create a `mongo.Client`:
4141

4242
```go
43-
import "go.mongodb.org/mongo-driver/mongo"
43+
import (
44+
"go.mongodb.org/mongo-driver/mongo"
45+
"go.mongodb.org/mongo-driver/mongo/options"
46+
)
4447

4548
client, err := mongo.NewClient(options.Client().ApplyURI("mongodb://localhost:27017"))
4649
```

0 commit comments

Comments
 (0)