# Packages
No description provided by the author
# Functions
CopyDocument handles copying a document from src to dst.
NewBSONDocumentReader returns a ValueReader using b for the underlying BSON representation.
NewBSONValueReader returns a ValueReader that starts in the Value mode instead of in top level document mode.
NewBSONValueReaderPool instantiates a new BSONValueReaderPool.
NewBSONValueWriter creates a ValueWriter that writes BSON to w.
NewBSONValueWriterPool creates a new pool for ValueWriter instances that write to BSON.
NewCopier creates a new copier with the given registry.
NewExtJSONValueReader creates a new ValueReader from a given io.Reader It will interpret the JSON of r as canonical or relaxed according to the given canonical flag.
NewExtJSONValueReaderPool instantiates a new ExtJSONValueReaderPool.
NewExtJSONValueWriter creates a ValueWriter that writes Extended JSON to w.
NewExtJSONValueWriterPool creates a new pool for ValueWriter instances that write to ExtJSON.
# Variables
ErrEOA is the error returned when the end of a BSON array has been reached.
ErrEOD is the error returned when the end of a BSON document has been reached.
ErrInvalidJSON indicates the JSON input is invalid.
# Structs
BSONValueReaderPool is a pool for ValueReaders that read BSON.
BSONValueWriterPool is a pool for BSON ValueWriters.
Copier is a type that allows copying between ValueReaders, ValueWriters, and []byte values.
ExtJSONValueReaderPool is a pool for ValueReaders that read ExtJSON.
ExtJSONValueWriterPool is a pool for ExtJSON ValueWriters.
TransitionError is an error returned when an invalid progressing a ValueReader or ValueWriter state machine occurs.
# Interfaces
ArrayReader is implemented by types that allow reading values from a BSON array.
ArrayWriter is the interface used to create a BSON or BSON adjacent array.
BytesReader is a generic interface used to read BSON bytes from a ValueReader.
BytesWriter is the interface used to write BSON bytes to a ValueWriter.
DocumentReader is implemented by types that allow reading elements from a BSON document.
DocumentWriter is the interface used to create a BSON or BSON adjacent document.
ValueReader is a generic interface used to read values from BSON.
ValueWriter is the interface used to write BSON values.
# Type aliases
SliceWriter allows a pointer to a slice of bytes to be used as an io.Writer.