Documentation
¶
Overview ¶
Package main lints Go source to ensure every call to time.Now() is normalized to UTC via .UTC(). Timestamps that carry the host's local timezone can drift depending on the TZ environment variable, so all wall-clock time in the program must be UTC.
Test files are skipped: fixtures may build time.Time values whose location is irrelevant to the assertion. So are generated files, and the .git and vendor directories.
Usage:
timelint [dir ...]
It lints every Go file under each dir, the current directory by default.
Source Files
¶
- main.go