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

# Functions

NewDocumentBuilder constructs a new DocumentBuilder.

# Variables

AC is a convenience variable provided for access to the ArrayConstructor methods.
C is a convenience variable provided for access to the Constructor methods.
ErrTooShort indicates that the slice provided to encode into is not large enough to fit the data.

# Structs

ArrayBuilder allows the creation of a BSON document by appending elements and then writing the document.
ArrayConstructor is used as a namespace for array element constructor functions.
Constructor is used as a namespace for document element constructor functions.
DocumentBuilder allows the creation of a BSON document by appending elements and then writing the document.

# Interfaces

ArrayElementer is the interface implemented by types that can serialize themselves into a BSON array element.
Elementer is the interface implemented by types that can serialize themselves into a BSON element.

# Type aliases

ArrayElementFunc is a function type used to insert BSON element values into an array using an ArrayBuilder.
ElementFunc is a function type used to insert BSON element values into a document using a DocumentBuilder.
ElementSizer handles retrieving the size of an element's BSON representation.
ElementWriter handles writing an element's BSON representation to a writer.