Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUnix ¶
FormatUnix formats the time.Time to unix date string.
func FormatUnixInt ¶
FormatUnixInt formats the int timestamp to unix date string.
Types ¶
type ClockMock ¶
type ClockMock struct {
// contains filtered or unexported fields
}
ClockMock is a clock mocking time with an internal counter.
func NewClockMock ¶
NewClockMock returns a new ClockMock.
Click to show internal directories.
Click to hide internal directories.