All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 48s
18 lines
211 B
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()
|
|
}
|