Versions in this module Expand all Collapse all v0 v0.1.0 Dec 29, 2023 Changes in this version + func SetTimeFormatter(layout string) + func SetTimeZone(zone int64) + type JSONDate time.Time + func (d *JSONDate) Scan(value interface{}) error + func (d *JSONDate) UnmarshalJSON(data []byte) error + func (d *JSONDate) Value() (driver.Value, error) + func (d JSONDate) GetBSON() (interface{}, error) + func (d JSONDate) MarshalJSON() ([]byte, error) + type JSONTime time.Time + func (t *JSONTime) GetBSON() (interface{}, error) + func (t *JSONTime) Scan(value interface{}) error + func (t *JSONTime) SetBSON(raw bson.RawValue) error + func (t *JSONTime) String() string + func (t *JSONTime) UnmarshalJSON(data []byte) error + func (t *JSONTime) Value() (driver.Value, error) + func (t JSONTime) MarshalJSON() ([]byte, error) + type MongoModel struct + CreatedAt *JSONTime + DeletedAt *JSONTime + PK primitive.ObjectID + Status int + UpdatedAt *JSONTime + func (mg *MongoModel) PrepareForInsert(status int)