Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Now ¶
Now returns current time
Returns same as time.Now() at default but if set custom function via SetTimeNow, uses it. This is useful for testing
func SetTimeNow ¶
func SetTimeNow(f NowFunc)
SetTimeNow sets custom function to change behavior of Now()
Types ¶
Click to show internal directories.
Click to hide internal directories.