Files
spend-sparrow/service/clock.go
Tim Wundenberg 96ca636fbb
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m4s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 5m6s
feat(treasurechest): #64 implement hirarchical treasure chests
2025-05-13 12:45:05 +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()
}