Documentation ¶
Index ¶
- func IsObjectIdHex(s string) bool
- type DBObject
- type ObjectId
- func (id ObjectId) GetBSON() (interface{}, error)
- func (id ObjectId) Hex() string
- func (id ObjectId) MarshalJSON() ([]byte, error)
- func (j *ObjectId) Scan(value interface{}) error
- func (id ObjectId) String() string
- func (id ObjectId) Timestamp() time.Time
- func (id *ObjectId) UnmarshalJSON(buf []byte) error
- func (id ObjectId) Valid() bool
- func (j 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.