Documentation ¶
Overview ¶
Package bson provides converters from/to BSON for built-in and `types` types.
See contributing guidelines and documentation for package `types` for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CString ¶
type CString string
CString represents BSON zero-terminated UTF-8 string type.
func (CString) MarshalBinary ¶
MarshalBinary implements bsontype interface.
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document represents BSON Document type.
func ConvertDocument ¶
ConvertDocument converts types.Document to bson.Document and validates it. It references the same data without copying it.
TODO Remove it.
func MustConvertDocument ¶
func MustConvertDocument(d document) *Document
MustConvertDocument is a ConvertDocument that panics in case of error.
func (Document) MarshalBinary ¶
MarshalBinary implements bsontype interface.
Click to show internal directories.
Click to hide internal directories.