This repository has been archived on 2026-04-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
spend-sparrow/service/clock.go

18 lines
211 B
Go

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