-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Add a constructor to the bson.Constructor and bson.ArrayConstructor types that takes a bson.Reader and creates an *Element or a *Value from it.
Because the bson.Reader type is directly implemented on top of []byte, users can directly pass a []byte into the method without having to cast it first.