Skip to content

Commit 4abe19c

Browse files
removing elipses from runnable code (#120)
1 parent cc39f70 commit 4abe19c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/fundamentals/bson.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ Driver will marshal structs using the following rules:
130130
Address Address `bson:"inline"`
131131
Age int
132132
}
133-
...
134133

135134
coll := client.Database("school").Collection("students")
136135
address1 := Address{ "1 Lakewood Way", "Elwood City", "PA" }
@@ -180,7 +179,6 @@ Driver will marshal structs using the following rules:
180179
Address Address
181180
Age int
182181
}
183-
...
184182

185183
coll := client.Database("school").Collection("students")
186184
address1 := Address{ "1 Lakewood Way", "Elwood City", "PA" }
@@ -248,7 +246,6 @@ operation:
248246

249247
var result bson.D
250248
err := coll.FindOne(context.TODO(), filter).Decode(&result)
251-
...
252249

253250
fmt.Println(result)
254251

@@ -278,13 +275,12 @@ user-defined struct by using methods from the ``bson`` package:
278275
Category string
279276
Quantity int32
280277
}
281-
...
282278

283279
doc, err := bson.Marshal(bson.D{{"category", "plate"}, {"quantity", 6}})
284-
...
280+
285281
var test Item
286282
err = bson.Unmarshal(doc, &test)
287-
...
283+
288284
fmt.Printf("Unmarshalled Struct:\n%+v\n", test)
289285

290286
.. output::

0 commit comments

Comments
 (0)