Registry / testing / echlebek-timeproxy

echlebek-timeproxy

JSON →
library1.0.0gogounverified

Package timeproxy provides functions and data types for working with time, enabling time mocking in tests.

go get github.com/echlebek/timeproxy
INSTALL
IMPORT
SIG · ECHLEBEK-TIMEPROXY
E
echlebek-timeproxy
testinggov1.0.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.

timeproxy
github.com/echlebek/timeproxy

Gets the current time using timeproxy, which can be mocked in tests.

package main import ( "fmt" "github.com/echlebek/timeproxy" ) func main() { fmt.Println(timeproxy.Now()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Meta
1
Resources
echlebek-timeproxy — go get echlebek-timeproxy · libregistry