This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package clock
|
||||
|
||||
import "time"
|
||||
|
||||
type Clock interface{ Now() time.Time }
|
||||
|
||||
type Real struct{}
|
||||
|
||||
func (Real) Now() time.Time { return time.Now().UTC() }
|
||||
Reference in New Issue
Block a user