Skip to content

Commit

Permalink
Add client.Connect to GoDoc
Browse files Browse the repository at this point in the history
GODRIVER-436

Change-Id: I024c6b5c2787de7241006048f4ad528e87c4f6a4
  • Loading branch information
Divjot Arora committed May 31, 2018
1 parent a39a5f9 commit 1098521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mongo/doc.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Package mongo provides a MongoDB Driver API for Go.
//
// Basic usage of the driver starts with creating a Client from a connection
// string. To do so, call the NewClient function:
// string. To do so, call the NewClient and Connect functions:
//
// client, err := mongo.NewClient("mongodb://foo:bar@localhost:27017")
// if err != nil { log.Fatal(err) }
// err = client.Connect(context.TODO())
// if err != nil { log.Fatal(err) }
//
// This will create a new client and start monitoring the MongoDB server on localhost.
// The Database and Collection types can be used to access the database:
Expand Down

0 comments on commit 1098521

Please sign in to comment.