Clock, another time mocking package

Written by
Link to Post

https://www.reddit.com/r/golang/comments/af36l5/clock_another_time_mocking_package/

Hi everyone,

Today at work, I needed to mock time for testing and found two packages. Unfortunately, both didn’t have versions for vendoring. So I thought, it’d be a great exercise to write one myself, since I’m still new to go.

Would anyone be so kind to help me and look over the code? I’d like to know whether it’s idiomatic or whether I’ve done some mistakes I didn’t realize.

GitHub Link

submitted by /u/NealLeonMoriarty
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Leave a Reply