Registry / testing / raulk-clock

raulk-clock

JSON →
library1.1.0gogounverified

A clock interface and mock for testing time-dependent code in Go.

go get github.com/raulk/clock
INSTALL
IMPORT
SIG · RAULK-CLOCK
R
raulk-clock
testinggov1.1.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.

clock
✓ github.com/raulk/clock

Create a real clock and get the current time.

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

No known issues recorded.

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

No dependency data recorded yet.

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