Registry / testing / songmu-flextime

songmu-flextime

JSON →
library0.1.0gogounverified

A Go package that improves time testability by allowing flexible replacement of the backend clock, with functions mirroring the standard time package.

go get github.com/Songmu/flextime
INSTALL
IMPORT
SIG · SONGMU-FLEXTIME
S
songmu-flextime
testinggov0.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.

flextime
github.com/Songmu/flextime

Fix the current time for testing

package main import ( "fmt" "github.com/Songmu/flextime" ) func main() { flextime.Fix("2023-01-01T00:00:00Z") fmt.Println(flextime.Now()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
songmu-flextime — go get songmu-flextime · libregistry