Files
spend-sparrow/internal/core/clock.go
Tim Wundenberg 75433834ed
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 1m7s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m10s
feat: extract authentication to domain package
2025-12-25 07:39:48 +01:00

18 lines
210 B
Go

package core
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().UTC()
}