Documentation ¶ Index ¶ type MockTime func Mock(t time.Time) (*MockTime, func()) func (m *MockTime) Advance(d time.Duration) type Timestamp func Date(year int, month time.Month, day int) Timestamp func New(t time.Time) Timestamp func NewPtr(t time.Time) *Timestamp func Now() Timestamp func NowPtr() *Timestamp func (ts *Timestamp) Scan(value any) error func (ts Timestamp) Value() (driver.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MockTime ¶ type MockTime struct{} func Mock ¶ func Mock(t time.Time) (*MockTime, func()) func (*MockTime) Advance ¶ func (m *MockTime) Advance(d time.Duration) type Timestamp ¶ type Timestamp struct { time.Time } func Date ¶ func Date(year int, month time.Month, day int) Timestamp func New ¶ func New(t time.Time) Timestamp func NewPtr ¶ func NewPtr(t time.Time) *Timestamp func Now ¶ func Now() Timestamp func NowPtr ¶ func NowPtr() *Timestamp func (*Timestamp) Scan ¶ func (ts *Timestamp) Scan(value any) error func (Timestamp) Value ¶ func (ts Timestamp) Value() (driver.Value, error) Source Files ¶ View all Source files mock.gots.go Click to show internal directories. Click to hide internal directories.