All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
x.Sub(time.Now())
time.Until(x)
The time.Until helper has the same effect as using x.Sub(time.Now()). The former is easier to read.
time.Until