package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Dec 9, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Clock interface {
Now() time.Time
}
Clock is an interface that abstracts time.Now() for testability.
type SystemClock struct{}
SystemClock is the real implementation of the Clock interface.
NewSystemClock creates a new SystemClock.
Now returns the current time.
Source Files
¶
Directories
¶
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.