Update generator (#37)

This commit is contained in:
Jonas Plum authored and GitHub committed 2022-03-12 21:09:10 +01:00
1 parent eced5df7c8
commit d353268cf2
28 files changed
+1303 -1618

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
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()
}