Documentation ¶
Index ¶
- func IsObjectIDHex(s string) bool
- type DBM
- type DBObject
- type Index
- type ObjectID
- func (id ObjectID) GetBSON() (interface{}, error)
- func (id ObjectID) Hex() string
- func (id ObjectID) MarshalJSON() ([]byte, error)
- func (id *ObjectID) Scan(value interface{}) error
- func (id ObjectID) String() string
- func (id ObjectID) Time() time.Time
- func (id ObjectID) Timestamp() time.Time
- func (id *ObjectID) UnmarshalJSON(buf []byte) error
- func (id ObjectID) Valid() bool
- func (id ObjectID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsObjectIDHex ¶
Types ¶
type ObjectID ¶
type ObjectID string
func NewObjectID ¶
func NewObjectID() ObjectID
func NewObjectIDWithTime ¶
func ObjectIDHex ¶
ObjectIDHex useful to create an object ID from the string
func (ObjectID) MarshalJSON ¶
func (*ObjectID) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.