The mockable interfaces for Go programming language.
A mockable interface of time.Now().
A mockable interface equivalent to time.Timer.
Clock is an interface where Nower and Timer are combined.
The timer protocol sends the current time when it is expired. This means Timer itself is not sufficient to mock timer's behavior.
Clock has an implementation in this repository while Timer does not.