👩💻 Join our community of thousands of amazing developers!
I have been struggling with using the Time package that comes in the Go standard library. My struggles have come from two pieces of functionality. First, trying to capture the number of milliseconds between two different time periods. Second, comparing that duration in milliseconds against a pre-defined time span. It sounds like a no brainier but like I said, I have been struggling. In the Time package there is a custom type called Duration and a set of helper constants:...