modulepackage
0.0.0-20170205232429-577e5acbbcf6
Repository: https://github.com/jacobsa/timeutil.git
Documentation: pkg.go.dev
# README
This package contains code that supplements the time package from the Go standard library. In particular:
- A Clock interface, with a fake implementation that can be used in tests.
- Implementations of oglematchers.Matcher for time values.
See the reference for more info.
# Functions
Return a clock that follows the real time, according to the system.
Return a matcher for times that are exactly equal to the given input time according to the == operator, which compares on location, instant, and monotonic clock reading.
Return a matcher for times whose absolute distance from t is less than d.
# Structs
A clock that allows for manipulation of the time, which does not change unless AdvanceTime is called.
# Interfaces
No description provided by the author