gogcli/internal/tzembed/embed.go
Viz 4b1d1d429d
fix: embed IANA timezone database for Windows support (#388)
- 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)
2026-03-07 14:53:06 +00:00

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