D represents a BSON document containing ordered elements. For example:

bson.D{{"a", 1}, {"b", true}}

In some situations, such as when creating indexes for MongoDB, the order in which the elements are defined is important. If the order is not important, using a map is generally more comfortable. See bson.M and bson.RawD.

D is referenced in 0 repositories