Files
spend-sparrow/service/clock.go
Tim Wundenberg d5a984e312
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 1m0s
feat(treasurechest): #64 implement hirarchical treasure chests
2025-05-12 23:37:47 +02:00

18 lines
207 B
Go

package service
import "time"
type Clock interface {
Now() time.Time
}
type ClockImpl struct{}
func NewClock() Clock {
return &ClockImpl{}
}
func (c *ClockImpl) Now() time.Time {
return time.Now()
}