Documentation ¶
Overview ¶
Package clock provides primitives for mocking time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock interface { // After waits for the duration to elapse and then sends the current time on the returned channel. After(duration time.Duration) <-chan time.Time // NewTicker returns a new Ticker. NewTicker(d time.Duration) Ticker // Now returns the current local time. Now() time.Time }
Clock provides capabilities from the time standard library package.
Click to show internal directories.
Click to hide internal directories.