Versions in this module Expand all Collapse all v1 v1.10.11 Oct 31, 2022 v1.10.10 Oct 31, 2022 v1.10.9 Oct 31, 2022 v1.10.8 Oct 31, 2022 v1.10.7 Oct 31, 2022 v1.10.6 Oct 31, 2022 v1.10.5 Oct 31, 2022 v1.10.4 Oct 31, 2022 v1.10.3 Oct 28, 2022 Changes in this version + const MaxDecimal128Exp + const MinDecimal128Exp + var ErrInvalidHex = errors.New("the provided hex string is not a valid ObjectID") + var ErrParseInf = errors.New("cannot parse Infinity as a *big.Int") + var ErrParseNaN = errors.New("cannot parse NaN as a *big.Int") + var ErrParseNegInf = errors.New("cannot parse -Infinity as a *big.Int") + func CompareTimestamp(tp, tp2 Timestamp) int + func IsValidObjectID(s string) bool + type A []interface + type Binary struct + Data []byte + Subtype byte + func (bp Binary) Equal(bp2 Binary) bool + func (bp Binary) IsZero() bool + type CodeWithScope struct + Code JavaScript + Scope interface{} + func (cws CodeWithScope) String() string + type D []E + func (d D) Map() M + type DBPointer struct + DB string + Pointer ObjectID + func (d DBPointer) Equal(d2 DBPointer) bool + func (d DBPointer) IsZero() bool + func (d DBPointer) String() string + type DateTime int64 + func NewDateTimeFromTime(t time.Time) DateTime + func (d *DateTime) UnmarshalJSON(data []byte) error + func (d DateTime) MarshalJSON() ([]byte, error) + func (d DateTime) Time() time.Time + type Decimal128 struct + func NewDecimal128(h, l uint64) Decimal128 + func ParseDecimal128(s string) (Decimal128, error) + func ParseDecimal128FromBigInt(bi *big.Int, exp int) (Decimal128, bool) + func (d *Decimal128) UnmarshalJSON(b []byte) error + func (d Decimal128) BigInt() (*big.Int, int, error) + func (d Decimal128) GetBytes() (uint64, uint64) + func (d Decimal128) IsInf() int + func (d Decimal128) IsNaN() bool + func (d Decimal128) IsZero() bool + func (d Decimal128) MarshalJSON() ([]byte, error) + func (d Decimal128) String() string + type E struct + Key string + Value interface{} + type JavaScript string + type M map[string]interface + type MaxKey struct + type MinKey struct + type Null struct + type ObjectID [12]byte + var NilObjectID ObjectID + func NewObjectID() ObjectID + func NewObjectIDFromTimestamp(timestamp time.Time) ObjectID + func ObjectIDFromHex(s string) (ObjectID, error) + func (id *ObjectID) UnmarshalJSON(b []byte) error + func (id *ObjectID) UnmarshalText(b []byte) error + func (id ObjectID) Hex() string + func (id ObjectID) IsZero() bool + func (id ObjectID) MarshalJSON() ([]byte, error) + func (id ObjectID) MarshalText() ([]byte, error) + func (id ObjectID) String() string + func (id ObjectID) Timestamp() time.Time + type Regex struct + Options string + Pattern string + func (rp Regex) Equal(rp2 Regex) bool + func (rp Regex) IsZero() bool + func (rp Regex) String() string + type Symbol string + type Timestamp struct + I uint32 + T uint32 + func (tp Timestamp) Equal(tp2 Timestamp) bool + func (tp Timestamp) IsZero() bool + type Undefined struct