Versions in this module Expand all Collapse all v0 v0.0.16 Oct 11, 2018 v0.0.15 Sep 27, 2018 Changes in this version + func EqualValue(t1, t2 Type, v1, v2 []byte) bool v0.0.14 Sep 20, 2018 Changes in this version + func AppendArray(dst []byte, arr []byte) []byte + func AppendArrayElement(dst []byte, key string, arr []byte) []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 AppendDouble(dst []byte, f float64) []byte + func AppendDoubleElement(dst []byte, key string, f float64) []byte + func AppendHeader(dst []byte, t 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 Type) []byte + func AppendUndefinedElement(dst []byte, key string) []byte + func ReadArray(src []byte) ([]byte, bool) + func ReadBinary(src []byte) (subtype byte, bin []byte, ok bool) + func ReadBoolean(src []byte) (bool, bool) + func ReadCodeWithScope(src []byte) (code string, scope []byte, ok bool) + func ReadDBPointer(src []byte) (ns string, oid objectid.ObjectID, ok bool) + func ReadDateTime(src []byte) (int64, bool) + func ReadDecimal128(src []byte) (decimal.Decimal128, bool) + func ReadDocument(src []byte) ([]byte, bool) + func ReadDouble(src []byte) (float64, bool) + func ReadInt32(src []byte) (int32, bool) + func ReadInt64(src []byte) (int64, bool) + func ReadJavaScript(src []byte) (js string, ok bool) + func ReadKey(src []byte) (string, bool) + func ReadObjectID(src []byte) (objectid.ObjectID, bool) + func ReadRegex(src []byte) (pattern, options string, ok bool) + func ReadString(src []byte) (string, bool) + func ReadSymbol(src []byte) (symbol string, ok bool) + func ReadTimestamp(src []byte) (t, i uint32, ok bool) + type Type byte + const TypeArray + const TypeBinary + const TypeBoolean + const TypeCodeWithScope + const TypeDBPointer + const TypeDateTime + const TypeDecimal128 + const TypeDouble + const TypeEmbeddedDocument + const TypeInt32 + const TypeInt64 + const TypeJavaScript + const TypeMaxKey + const TypeMinKey + const TypeNull + const TypeObjectID + const TypeRegex + const TypeString + const TypeSymbol + const TypeTimestamp + const TypeUndefined + func ReadHeader(src []byte) (t Type, key string, ok bool) + func ReadType(src []byte) (Type, bool) + func (bt Type) String() string