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 1ed504c49b
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 55s
Build Docker Image / Build-Docker-Image (push) Successful in 45s
fix: refactor code to be testable #181
2024-11-11 22:01:03 +01:00

18 lines
253 B
Go

package service
import "time"
type ClockService interface {
Now() time.Time
}
type ClockServiceImpl struct{}
func NewClockServiceImpl() ClockService {
return &ClockServiceImpl{}
}
func (c *ClockServiceImpl) Now() time.Time {
return time.Now()
}