package
Version:
v2.1.1
Opens a new window with list of versions in this module.
Published: Jan 20, 2023
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
¶
Package clock provides the Clock interface for getting the current time
type Clock interface {
Now() time.Time
}
Clock provides an interface to the current time, useful for testing
New returns an implementation of Clock that uses the system time
type SystemClock struct{}
SystemClock uses the system clock to return the time
Source Files
¶
Click to show internal directories.
Click to hide internal directories.