Update generator (#37)

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

19
generated/time/time.go Executable file
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()
}