From 52db1d03e5067de4ba77c3a12465149d268eb3d1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 9 Jun 2025 02:51:27 +0200 Subject: Begin migration towards SQLite --- src/mintage/mintage.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/mintage/mintage.go (limited to 'src/mintage/mintage.go') diff --git a/src/mintage/mintage.go b/src/mintage/mintage.go deleted file mode 100644 index 0e98bd1..0000000 --- a/src/mintage/mintage.go +++ /dev/null @@ -1,42 +0,0 @@ -package mintage - -type Data struct { - Standard []SRow - Commemorative []CRow -} - -type SRow struct { - Year int - Mintmark string - Mintages [denoms]int - Reference string -} - -type CRow struct { - Year int - Name string - Mintmark string - Mintage int - Reference string -} - -const ( - TypeCirc = iota - TypeNifc - TypeProof -) - -const ( - Unknown = -iota - 1 - Invalid -) - -const denoms = 8 - -var cache map[string][3]Data = make(map[string][3]Data) - -func ClearCache(country string) { - if _, ok := cache[country]; ok { - delete(cache, country) - } -} -- cgit v1.2.3