10 lines
147 B
Go
10 lines
147 B
Go
package clock
|
|
|
|
import "time"
|
|
|
|
type Clock interface{ Now() time.Time }
|
|
|
|
type Real struct{}
|
|
|
|
func (Real) Now() time.Time { return time.Now().UTC() }
|