clockwork
clock
Our great sponsors
clockwork | clock | |
---|---|---|
2 | 2 | |
598 | 647 | |
- | - | |
5.6 | 7.7 | |
4 months ago | 12 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
clockwork
-
[Go] How to work with dates in tests
This is what I use: https://github.com/jonboulle/clockwork
-
benbjohnson/clock (time mocking) is now archived
I then gave up on it, and started using https://github.com/jonboulle/clockwork instead. It's been incredibly better for me.
clock
- benbjohnson/clock (time mocking) is now archived
-
The Pocket Guide to Debugging
I recently discovered the joy of abstracting away time. I write a lot of software in Go for work. This library, https://github.com/benbjohnson/clock, provides a Clock interface that can be used for creating either clocks with the same interface as the standard "time" module, or to create a mock clock that increments to the next tick on any and all tickers defined in the app. It really makes unit tests go faster, though it can be tricky to get the code right.
What are some alternatives?
go-dry - DRY (don't repeat yourself) package for Go
nix-diff - Explain why two Nix derivations differ
godotenv - A Go port of Ruby's dotenv library (Loads environment variables from .env files)
system-posix-redirect - A toy module that allows you to temporarily redirect a program's stdout.
JobRunner - Framework for performing work asynchronously, outside of the request flow
xmobar - A minimalistic status bar
go-funk - A modern Go utility library which provides helpers (map, find, contains, filter, ...)
scp-streams - An SCP protocol implementation
mergo - Mergo: merging Go structs and maps since 2013
teardown - Composable, idempotent & transparent application resource cleanup sub-routines
delve - Delve is a debugger for the Go programming language.
unix-compat - Haskell portable POSIX-compatibility layer