fix: remove redundante names
This commit was merged in pull request #299.
This commit is contained in:
@@ -2,16 +2,16 @@ package service
|
||||
|
||||
import "time"
|
||||
|
||||
type ClockService interface {
|
||||
type Clock interface {
|
||||
Now() time.Time
|
||||
}
|
||||
|
||||
type ClockServiceImpl struct{}
|
||||
type ClockImpl struct{}
|
||||
|
||||
func NewClockServiceImpl() ClockService {
|
||||
return &ClockServiceImpl{}
|
||||
func NewClockImpl() Clock {
|
||||
return &ClockImpl{}
|
||||
}
|
||||
|
||||
func (c *ClockServiceImpl) Now() time.Time {
|
||||
func (c *ClockImpl) Now() time.Time {
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user