This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/service/clock.go
Tim Wundenberg a69e9537d2
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 37s
fix: remove redundante names
2024-12-04 23:30:08 +01:00

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()
}