From a9d1fbc2cd457060d3973e099492226e76746a05 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Fri, 17 Oct 2025 11:30:08 +0200 Subject: [PATCH] Rename Id to ID --- pkg/serra/stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/serra/stats.go b/pkg/serra/stats.go index f448a80..d3af36d 100644 --- a/pkg/serra/stats.go +++ b/pkg/serra/stats.go @@ -150,7 +150,7 @@ func showRarityStats(coll *Collection) { func showCardsAddedPerMonth(coll *Collection) { fmt.Printf("\n%sCards added over time%s\n", Green, Reset) type Caot struct { - Id struct { + ID struct { Year int32 `mapstructure:"year"` Month int32 `mapstructure:"month"` } `mapstructure:"_id"` @@ -178,7 +178,7 @@ func showCardsAddedPerMonth(coll *Collection) { for _, mo := range caot { moo := new(Caot) mapstructure.Decode(mo, moo) - fmt.Printf("%d-%02d: %s%d%s\n", moo.Id.Year, moo.Id.Month, Purple, moo.Count, Reset) + fmt.Printf("%d-%02d: %s%d%s\n", moo.ID.Year, moo.ID.Month, Purple, moo.Count, Reset) } }