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() {
62
62
fmt .Printf ("\t %s\n " , id )
63
63
}
64
64
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("...")
65
70
}
Original file line number Diff line number Diff line change @@ -59,4 +59,9 @@ func main() {
59
59
fmt .Printf ("\t %s\n " , id )
60
60
}
61
61
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("...")
62
67
}
Original file line number Diff line number Diff line change @@ -54,4 +54,8 @@ func main() {
54
54
// Prints the ID of the inserted document
55
55
fmt .Printf ("Document inserted with ID: %s\n " , result .InsertedID )
56
56
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
+
57
61
}
Original file line number Diff line number Diff line change @@ -48,4 +48,7 @@ func main() {
48
48
// Prints the ID of the inserted document
49
49
fmt .Printf ("Document inserted with ID: %s\n " , result .InsertedID )
50
50
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("...")
51
54
}
You can’t perform that action at this time.
0 commit comments