We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 023c3eb + 1cd18e1 commit 58da8e6Copy full SHA for 58da8e6
README.md
@@ -40,7 +40,10 @@ dep ensure -add "go.mongodb.org/mongo-driver/mongo@~1.0.0"
40
To get started with the driver, import the `mongo` package, create a `mongo.Client`:
41
42
```go
43
-import "go.mongodb.org/mongo-driver/mongo"
+import (
44
+ "go.mongodb.org/mongo-driver/mongo"
45
+ "go.mongodb.org/mongo-driver/mongo/options"
46
+)
47
48
client, err := mongo.NewClient(options.Client().ApplyURI("mongodb://localhost:27017"))
49
```
0 commit comments