Files
catalyst/generated/time/time.go
2022-03-12 21:09:10 +01:00

20 lines
245 B
Go
Executable File

package time
import "time"
type Clock interface {
Now() time.Time
}
type realClock struct{}
func (realClock) Now() time.Time {
return time.Now()
}
var DefaultClock Clock = &realClock{}
func Now() time.Time {
return DefaultClock.Now()
}