Versions in this module Expand all Collapse all v0 v0.0.17 Oct 25, 2018 Changes in this version + func AppendArray(dst []byte, arr []byte) []byte + func AppendArrayElement(dst []byte, key string, arr []byte) []byte + func AppendArrayElementStart(dst []byte, key string) (index int32, b []byte) + func AppendArrayEnd(dst []byte, index int32) ([]byte, error) + func AppendArrayStart(dst []byte) (index int32, b []byte) + func AppendBinary(dst []byte, subtype byte, b []byte) []byte + func AppendBinaryElement(dst []byte, key string, subtype byte, b []byte) []byte + func AppendBoolean(dst []byte, b bool) []byte + func AppendBooleanElement(dst []byte, key string, b bool) []byte + func AppendCodeWithScope(dst []byte, code string, scope []byte) []byte + func AppendCodeWithScopeElement(dst []byte, key, code string, scope []byte) []byte + func AppendDBPointer(dst []byte, ns string, oid objectid.ObjectID) []byte + func AppendDBPointerElement(dst []byte, key, ns string, oid objectid.ObjectID) []byte + func AppendDateTime(dst []byte, dt int64) []byte + func AppendDateTimeElement(dst []byte, key string, dt int64) []byte + func AppendDecimal128(dst []byte, d128 decimal.Decimal128) []byte + func AppendDecimal128Element(dst []byte, key string, d128 decimal.Decimal128) []byte + func AppendDocument(dst []byte, doc []byte) []byte + func AppendDocumentElement(dst []byte, key string, doc []byte) []byte + func AppendDocumentElementStart(dst []byte, key string) (index int32, b []byte) + func AppendDocumentEnd(dst []byte, index int32) ([]byte, error) + func AppendDocumentStart(dst []byte) (index int32, b []byte) + func AppendDocumentStartInline(dst []byte, index *int32) []byte + func AppendDouble(dst []byte, f float64) []byte + func AppendDoubleElement(dst []byte, key string, f float64) []byte + func AppendHeader(dst []byte, t bsontype.Type, key string) []byte + func AppendInt32(dst []byte, i32 int32) []byte + func AppendInt32Element(dst []byte, key string, i32 int32) []byte + func AppendInt64(dst []byte, i64 int64) []byte + func AppendInt64Element(dst []byte, key string, i64 int64) []byte + func AppendJavaScript(dst []byte, js string) []byte + func AppendJavaScriptElement(dst []byte, key, js string) []byte + func AppendKey(dst []byte, key string) []byte + func AppendMaxKeyElement(dst []byte, key string) []byte + func AppendMinKeyElement(dst []byte, key string) []byte + func AppendNullElement(dst []byte, key string) []byte + func AppendObjectID(dst []byte, oid objectid.ObjectID) []byte + func AppendObjectIDElement(dst []byte, key string, oid objectid.ObjectID) []byte + func AppendRegex(dst []byte, pattern, options string) []byte + func AppendRegexElement(dst []byte, key, pattern, options string) []byte + func AppendString(dst []byte, s string) []byte + func AppendStringElement(dst []byte, key, val string) []byte + func AppendSymbol(dst []byte, symbol string) []byte + func AppendSymbolElement(dst []byte, key, symbol string) []byte + func AppendTimestamp(dst []byte, t, i uint32) []byte + func AppendTimestampElement(dst []byte, key string, t, i uint32) []byte + func AppendType(dst []byte, t bsontype.Type) []byte + func AppendUndefinedElement(dst []byte, key string) []byte + func EqualValue(t1, t2 bsontype.Type, v1, v2 []byte) bool + func ReadArray(src []byte) (arr []byte, rem []byte, ok bool) + func ReadBinary(src []byte) (subtype byte, bin []byte, rem []byte, ok bool) + func ReadBoolean(src []byte) (bool, []byte, bool) + func ReadCodeWithScope(src []byte) (code string, scope []byte, rem []byte, ok bool) + func ReadDBPointer(src []byte) (ns string, oid objectid.ObjectID, rem []byte, ok bool) + func ReadDateTime(src []byte) (int64, []byte, bool) + func ReadDecimal128(src []byte) (decimal.Decimal128, []byte, bool) + func ReadDocument(src []byte) (doc []byte, rem []byte, ok bool) + func ReadDouble(src []byte) (float64, []byte, bool) + func ReadHeader(src []byte) (t bsontype.Type, key string, rem []byte, ok bool) + func ReadInt32(src []byte) (int32, []byte, bool) + func ReadInt64(src []byte) (int64, []byte, bool) + func ReadJavaScript(src []byte) (js string, rem []byte, ok bool) + func ReadKey(src []byte) (string, []byte, bool) + func ReadLength(src []byte) (int32, []byte, bool) + func ReadObjectID(src []byte) (objectid.ObjectID, []byte, bool) + func ReadRegex(src []byte) (pattern, options string, rem []byte, ok bool) + func ReadString(src []byte) (string, []byte, bool) + func ReadSymbol(src []byte) (symbol string, rem []byte, ok bool) + func ReadTimestamp(src []byte) (t, i uint32, rem []byte, ok bool) + func ReadType(src []byte) (bsontype.Type, []byte, bool) + func ReserveLength(dst []byte) (int32, []byte) + func UpdateLength(dst []byte, index, length int32) []byte + type Document []byte + type Element []byte + type Value struct + Data []byte + Type bsontype.Type + func ReadValue(src []byte, t bsontype.Type) (Value, []byte, bool)