You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migration Notes:
The bson.Reader type has been replaced with bson.Raw. This new type has
it's own Element and Value types, called bson.RawElement and
bson.RawValue respectively. The API of bson.Raw is different from
bson.Reader:
- the ElementAt method has been replaced with Index and IndexErr
- the Lookup method now returns a bson.RawValue instead of a
*bson.Element
- the Iterator method and ReaderIterator type have been replaced
with the Elements method and a []RawElement
The bson.Raw family of types are wrappers around their bsoncore
equivalents. The errors returned from this types are not wrapped, so
users using these types will need to import the bsoncore package when
identifying errors.
There is no bsoncore.Array type nor a bson.RawArray, instead the
bsoncore.Document and bson.Raw types should be used. A Values method on
each will return just the values as a slice.
Change-Id: Ie170697a07cf21c27839a54894b92d17a4a2f61c
0 commit comments