fix: move implementation to "internal" package
This commit was merged in pull request #138.
This commit is contained in:
17
internal/service/clock.go
Normal file
17
internal/service/clock.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package service
|
||||
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user