Versions in this module Expand all Collapse all v0 v0.0.4 Jul 13, 2015 Changes in this version + var MaxKey = orderKey(1<<63 - 1) + var MinKey = orderKey(-1 << 63) + var SetZero = errors.New("set to zero") + var Undefined undefined + func IsObjectIdHex(s string) bool + func Marshal(in interface{}) (out []byte, err error) + func Now() time.Time + func Unmarshal(in []byte, out interface{}) (err error) + type Binary struct + Data []byte + Kind byte + type D []DocElem + func (d D) Map() (m M) + type DBPointer struct + Id ObjectId + Namespace string + type DocElem struct + Name string + Value interface{} + type Getter interface + GetBSON func() (interface{}, error) + type JavaScript struct + Code string + Scope interface{} + type M map[string]interface + type MongoTimestamp int64 + type ObjectId string + func NewObjectId() ObjectId + func NewObjectIdWithTime(t time.Time) ObjectId + func ObjectIdHex(s string) ObjectId + func (id *ObjectId) UnmarshalJSON(data []byte) error + func (id ObjectId) Counter() int32 + func (id ObjectId) Hex() string + func (id ObjectId) Machine() []byte + func (id ObjectId) MarshalJSON() ([]byte, error) + func (id ObjectId) Pid() uint16 + func (id ObjectId) String() string + func (id ObjectId) Time() time.Time + func (id ObjectId) Valid() bool + type Raw struct + Data []byte + Kind byte + func (raw Raw) Unmarshal(out interface{}) (err error) + type RawD []RawDocElem + type RawDocElem struct + Name string + Value Raw + type RegEx struct + Options string + Pattern string + type Setter interface + SetBSON func(raw Raw) error + type Symbol string + type TypeError struct + Kind byte + Type reflect.Type + func (e *TypeError) Error() string