package
1.5.4
Repository: https://github.com/yiuterran/go-common.git
Documentation: pkg.go.dev

# Functions

After See built-in time.After() function.
AfterFunc See built-in time.AfterFunc() function.
Elapse increment the current time by the given Duration.
NewTimer creates a new Timer; either a wrapper around a standard Go time.Timer, or a mocked-out Timer, depending on whether MockMode is set.
Now Returns the current time.
Sleep See built-in time.Sleep() function.

# Variables

MockMode Controls whether library calls should be mocked, or whether we should use the standard Go time library.

# Interfaces

Timer is interface over Golang's built-in Timers, allowing them to be swapped out for mocked timers.