Versions in this module Expand all Collapse all v1 v1.1.0 May 26, 2022 v1.0.0 May 26, 2022 Changes in this version + var ErrInvalidHex = errors.New("the provided hex string is not a valid ObjectID") + func CompareTimestamp(tp, tp2 Timestamp) int + type A []interface + type Binary struct + Data []byte + Subtype byte + func (bp Binary) Equal(bp2 Binary) 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) String() string + type DateTime int64 + func NewDateTimeFromTime(t time.Time) DateTime + 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 (d Decimal128) GetBytes() (uint64, uint64) + 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) Hex() string + func (id ObjectID) IsZero() bool + func (id ObjectID) MarshalJSON() ([]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) String() string + type Symbol string + type Timestamp struct + I uint32 + T uint32 + func (tp Timestamp) Equal(tp2 Timestamp) bool + type Undefined struct