Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectID ¶
type ObjectID string
ObjectID is a unique ID identifying a BSON value. It must be exactly 12 bytes long. MongoDB objects by default have such a property set in their "_id" property.
http://www.mongodb.org/display/DOCS/Object+IDs
func NewObjectID ¶
func NewObjectID() ObjectID
NewObjectID returns a new unique ObjectID. 4byte 时间, 3byte 机器ID 2byte pid 3byte 自增ID
Click to show internal directories.
Click to hide internal directories.