Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultClock ¶
type DefaultClock struct{}
func (*DefaultClock) Now ¶
func (*DefaultClock) Now() time.Time
type StaticClock ¶
type StaticClock struct {
// contains filtered or unexported fields
}
func Static ¶
func Static(time time.Time) *StaticClock
Static returns a new clock that always returns the given static value.
func (*StaticClock) Now ¶
func (c *StaticClock) Now() time.Time
Click to show internal directories.
Click to hide internal directories.