Skip to content

Commit 58da8e6

Browse files
authored
Merge pull request #169 from jairovsky/fix-import-usage-readme
readme: fix missing import
2 parents 023c3eb + 1cd18e1 commit 58da8e6

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)