clockwork VS clock

Compare clockwork vs clock and see what are their differences.

clockwork

a fake clock for golang (by jonboulle)

clock

Clock is a small library for mocking time in Go. (by benbjohnson)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
clockwork clock
2 2
598 647
- -
5.6 7.7
4 months ago 12 months ago
Go Go
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of clockwork. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.

clock

Posts with mentions or reviews of clock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • benbjohnson/clock (time mocking) is now archived
    2 projects | /r/golang | 18 May 2023
  • The Pocket Guide to Debugging
    1 project | news.ycombinator.com | 24 Dec 2022
    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?

When comparing clockwork and clock you can also consider the following projects:

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