File tree Expand file tree Collapse file tree 2 files changed +42
-29
lines changed
includes/usage-examples/code-snippets Expand file tree Collapse file tree 2 files changed +42
-29
lines changed Original file line number Diff line number Diff line change @@ -153,31 +153,37 @@ existing document in the ``restaurants`` collection. Select the
153153 The following code uses structs to define and delete a document in the
154154 ``restaurants`` collection:
155155
156- .. input:: /includes/usage-examples/code-snippets/deleteOne.go
157- :language: go
158- :dedent:
156+ .. io-code-block::
157+ :copyable: true
159158
160- .. output::
161- :language: none
162- :visible: false
159+ .. input:: /includes/usage-examples/code-snippets/deleteOne.go
160+ :language: go
161+ :dedent:
163162
164- Documents deleted: 1
163+ .. output::
164+ :language: none
165+ :visible: false
166+
167+ Documents deleted: 1
165168
166169 .. tab:: bson.D
167170 :tabid: bsonExample
168171
169172 The following code uses a bson.D type to define and delete a document in the
170173 ``restaurants`` collection:
171174
172- .. input:: /includes/usage-examples/code-snippets/deleteOneBson.go
173- :language: go
174- :dedent:
175+ .. io-code-block::
176+ :copyable: true
177+
178+ .. input:: /includes/usage-examples/code-snippets/deleteOneBson.go
179+ :language: go
180+ :dedent:
175181
176- .. output::
177- :language: none
178- :visible: false
182+ .. output::
183+ :language: none
184+ :visible: false
179185
180- Documents deleted: 1
186+ Documents deleted: 1
181187
182188DeleteMany() Example: Full File
183189~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -196,31 +202,38 @@ existing documents in the ``restaurants`` collection. Select the
196202 The following code uses structs to define and delete documents in the
197203 ``restaurants`` collection:
198204
199- .. input:: /includes/usage-examples/code-snippets/deleteMany.go
200- :language: go
201- :dedent:
205+ .. io-code-block::
206+ :copyable: true
202207
203- .. output::
204- :language: none
205- :visible: false
208+ .. input:: /includes/usage-examples/code-snippets/deleteMany.go
209+ :language: go
210+ :dedent:
211+
206212
207- Documents deleted: 2
213+ .. output::
214+ :language: none
215+ :visible: false
216+
217+ Documents deleted: 6
208218
209219 .. tab:: bson.D
210220 :tabid: bsonExample
211221
212222 The following code uses a bson.D type to define and delete documents in the
213223 ``restaurants`` collection:
214224
215- .. input:: /includes/usage-examples/code-snippets/deleteManyBson.go
216- :language: go
217- :dedent:
225+ .. io-code-block::
226+ :copyable: true
227+
228+ .. input:: /includes/usage-examples/code-snippets/deleteManyBson.go
229+ :language: go
230+ :dedent:
218231
219- .. output::
220- :language: none
221- :visible: false
232+ .. output::
233+ :language: none
234+ :visible: false
222235
223- Documents deleted: 2
236+ Documents deleted: 6
224237
225238Additional Information
226239----------------------
Original file line number Diff line number Diff line change @@ -58,6 +58,6 @@ func main() {
5858 // Prints the number of deleted documents
5959 fmt .Printf ("Documents deleted: %d\n " , result .DeletedCount )
6060
61- // When you run this file for the first time, it should print :
61+ // When you run this file for the first time, it prints output similar to the following :
6262 // Documents deleted: 1
6363}
You can’t perform that action at this time.
0 commit comments