Registry / testing / jonboulle-clockwork

jonboulle-clockwork

JSON →
library0.5.0gogounverified

A simple fake clock for Go, useful for testing time-dependent code.

go get github.com/jonboulle/clockwork
INSTALL
IMPORT
SIG · JONBOULLE-CLOCKWOR
J
jonboulle-clockwork
testinggov0.5.0
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.

clockwork
github.com/jonboulle/clockwork

Create a fake clock and print current time.

package main import ( "fmt" "github.com/jonboulle/clockwork" ) func main() { clock := clockwork.NewFakeClock() fmt.Println(clock.Now()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
jonboulle-clockwork — go get jonboulle-clockwork · libregistry