package
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Dec 10, 2023
License: MIT
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 abstracts the time module to make it easier to test the system.
RealClock uses the time module underneath and should be used the production code.
New creates a RealClock instance.
Now returns the current local time.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.