mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-10-08 07:55:24 +02:00
Update generator (#37)
This commit is contained in:
1 parent
eced5df7c8
commit
d353268cf2
28 files changed
+1303
-1618
No files matched your search
Executable
+19
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user