Registry / utility / andres-erbsen-clock

andres-erbsen-clock

JSON →
library0.0.0-20160526145045-9e14626cd129gogounverified

A simple clock abstraction for Go, providing mockable time operations.

go get github.com/andres-erbsen/clock
INSTALL
IMPORT
SIG · ANDRES-ERBSEN-CLOC
A
andres-erbsen-clock
utilitygov0.0.0-20160526145045-9e14626cd129
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/andres-erbsen/clock

Creates a real clock and prints the current time.

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

No known issues recorded.

Upgrade
Version history
0.0.0-20160526145045-9e14626cd129latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Meta
1
Amazon
1
OpenAI (training)
1
Resources
andres-erbsen-clock — go get andres-erbsen-clock · libregistry