File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
source/includes/usage-examples/code-snippets Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -62,4 +62,9 @@ func main() {
6262 fmt .Printf ("\t %s\n " , id )
6363 }
6464
65+ // When you run this file for the first time, it should print output similar
66+ // to the following:
67+ // 2 documents inserted with IDs:
68+ // ObjectID("...")
69+ // ObjectID("...")
6570}
Original file line number Diff line number Diff line change @@ -59,4 +59,9 @@ func main() {
5959 fmt .Printf ("\t %s\n " , id )
6060 }
6161
62+ // When you run this file for the first time, it should print output similar
63+ // to the following:
64+ // 2 documents inserted with IDs:
65+ // ObjectID("...")
66+ // ObjectID("...")
6267}
Original file line number Diff line number Diff line change @@ -54,4 +54,8 @@ func main() {
5454 // Prints the ID of the inserted document
5555 fmt .Printf ("Document inserted with ID: %s\n " , result .InsertedID )
5656
57+ // When you run this file for the first time, it should print output similar
58+ // to the following:
59+ // Document inserted with ID: ObjectID("...")
60+
5761}
Original file line number Diff line number Diff line change @@ -48,4 +48,7 @@ func main() {
4848 // Prints the ID of the inserted document
4949 fmt .Printf ("Document inserted with ID: %s\n " , result .InsertedID )
5050
51+ // When you run this file for the first time, it should print output similar
52+ // to the following:
53+ // Document inserted with ID: ObjectID("...")
5154}
You can’t perform that action at this time.
0 commit comments