Documentation
¶
Overview ¶
Package isttz provides the Asia/Kolkata timezone loaded once at init. This is a leaf package with zero internal dependencies, so any package in the module can import it without risk of circular imports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Location = func() *time.Location { loc, err := time.LoadLocation("Asia/Kolkata") if err != nil { panic("failed to load Asia/Kolkata timezone: " + err.Error()) } return loc }()
Location is the Asia/Kolkata timezone used throughout for IST operations. Loaded once at init; panics if tzdata is missing (Alpine needs the tzdata package).
Coverage note: the panic branch (line inside if err != nil) is unreachable on any system with tzdata installed. Go embeds tzdata since 1.15, and our Docker image includes the tzdata Alpine package. The 75% coverage reflects this untestable panic guard — not a gap in test quality.
Functions ¶
This section is empty.
Types ¶
This section is empty.