Registry / utility / facebookgo-clock

facebookgo-clock

JSON →
library0.0.0-20150410010913-600d898af40agogounverified

A Go clock library that provides a mockable clock for testing time-dependent code.

go get github.com/facebookgo/clock
INSTALL
IMPORT
SIG · FACEBOOKGO-CLOCK
F
facebookgo-clock
utilitygov0.0.0-20150410010913-600d898af40a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clock
github.com/facebookgo/clock

Create a real clock and get the current time.

package main import ( "fmt" "time" "github.com/facebookgo/clock" ) func main() { c := clock.New() fmt.Println(c.Now()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150410010913-600d898af40alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
facebookgo-clock — go get facebookgo-clock · libregistry