Files
spend-sparrow/internal/service/clock.go
Tim Wundenberg 6219741634
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m49s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 5m8s
fix: move implementation to "internal" package
2025-05-29 13:42:13 +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()
}