- Import time/tzdata in cmd/gog/main.go to bundle the IANA tz database into the binary (~450KB), fixing time.LoadLocation on Windows - Add tzdata_test.go verifying LoadLocation works for representative zones - Add windows-latest CI job running the full gate (fmt, lint, test, build)
6 lines
246 B
Go
6 lines
246 B
Go
// Package tzembed forces embedding of the IANA timezone database
|
|
// so time.LoadLocation works on Windows in both binaries and tests.
|
|
package tzembed
|
|
|
|
import _ "time/tzdata" // Embeds IANA timezone database so time.LoadLocation works on Windows
|