package
0.3.0
Repository: https://github.com/mongodb/mongo-go-driver.git
Documentation: pkg.go.dev

# Packages

Package bsoncore contains functions that can be used to encode and decode BSON elements and values to or from a slice of bytes.

# Functions

Array constructs a Value from arr.
Binary constructs a BSON binary Value.
Boolean constructs a BSON boolean Value.
CodeWithScope constructs a BSON code with scope Value.
DateTime constructs a BSON datetime Value.
DBPointer constructs a BSON dbpointer Value.
Decimal128 constructs a BSON decimal128 Value.
Document constructs a Value from the given IDoc.
Double constructs a BSON double Value.
Int32 constructs a BSON int32 Value.
Int64 constructs a BSON int64 Value.
JavaScript constructs a BSON javascript Value.
MaxKey constructs a BSON maxkey Value.
MinKey constructs a BSON minkey Value.
NewRegistryBuilder creates a new RegistryBuilder configured with the default encoders and deocders from the bsoncodec.DefaultValueEncoders and bsoncodec.DefaultValueDecoders types and the PrimitiveCodecs type in this package.
Null constructs a BSON binary Value.
ObjectID constructs a BSON objectid Value.
ReadDoc will create a Document using the provided slice of bytes.
ReadMDoc will create a Doc using the provided slice of bytes.
Regex constructs a BSON regex Value.
String constructs a BSON string Value.
Symbol constructs a BSON symbol Value.
Time constructs a BSON datetime Value.
Timestamp constructs a BSON timestamp Value.
Undefined constructs a BSON binary Value.

# Variables

DefaultRegistry is the default bsoncodec.Registry.
ErrNilArray indicates that an operation was attempted on a nil *Array.
ErrNilDocument indicates that an operation was attempted on a nil *bson.Document.

# Structs

Elem represents a BSON element.
ElementTypeError specifies that a method to obtain a BSON value an incorrect type was called on a bson.Value.
KeyNotFound is an error type returned from the Lookup methods on Document.
PrimitiveCodecs is a namespace for all of the default bsoncodec.Codecs for the primitive types defined in this package.
Val represents a BSON value.

# Interfaces

IDoc is the interface implemented by Doc and MDoc.

# Type aliases

Arr represents an array in BSON.
Doc is a type safe, concise BSON document representation.
MDoc is an unordered, type safe, concise BSON document representation.