News for hackers. Stuff that matters.
Re:Leveraging the Go Type System by marcus_holmes on Tuesday February 09, 2021 @02:23PM (#26081471)
Totally agree. Time zero values are my bane. I've started using sql.NullTime for all time values regardless, just so I'm clear about what is what.

* yes I know time.IsZero() is a thing, and the semantics are similar, but I want the compiler to warn me if I'm trying to use a time without checking if it's actually initialised first.

There are no comments on this comment yet.