mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 00:52:40 +00:00
gofmt: bring internal/ and cmd/ back to gofmt -l clean
Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is semantics-preserving, and build/vet/test are green either side. Split out from the code-review fixes that follow so those stay reviewable instead of hiding inside a wall of realignment.
This commit is contained in:
@@ -168,11 +168,11 @@ func (p *HolidaysPlugin) Prefetch() error {
|
||||
slog.Error("holidays: aladhan fetch failed", "err", err)
|
||||
} else if islamicInfo != "" {
|
||||
allHolidays = append(allHolidays, Holiday{
|
||||
Name: "Islamic Date",
|
||||
Name: "Islamic Date",
|
||||
Description: islamicInfo,
|
||||
Country: "International",
|
||||
Type: "islamic-calendar",
|
||||
Date: dateStr,
|
||||
Country: "International",
|
||||
Type: "islamic-calendar",
|
||||
Date: dateStr,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -471,9 +471,9 @@ func (p *HolidaysPlugin) fetchCalendarific(date time.Time, country string) ([]Ho
|
||||
|
||||
// Types to exclude — too regional to be interesting
|
||||
skipTypes := map[string]bool{
|
||||
"Local holiday": true,
|
||||
"Common local holiday": true,
|
||||
"Local observance": true,
|
||||
"Local holiday": true,
|
||||
"Common local holiday": true,
|
||||
"Local observance": true,
|
||||
"Clock change/Daylight Saving Time": true,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user