Skip to content

Commit

Permalink
Merge pull request #207 from invopop/zone-refactor
Browse files Browse the repository at this point in the history
Refactoring zones so that data is lazy loaded when needed
  • Loading branch information
samlown authored Sep 28, 2023
2 parents 105fca4 + 9816606 commit ef12b6c
Show file tree
Hide file tree
Showing 23 changed files with 16,063 additions and 17,519 deletions.
14,575 changes: 0 additions & 14,575 deletions build/regimes/co.json

Large diffs are not rendered by default.

497 changes: 0 additions & 497 deletions build/regimes/es.json

Large diffs are not rendered by default.

644 changes: 0 additions & 644 deletions build/regimes/it.json

Large diffs are not rendered by default.

182 changes: 0 additions & 182 deletions build/regimes/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,188 +6,6 @@
},
"time_zone": "Europe/Lisbon",
"country": "PT",
"zones": [
{
"code": "01",
"region": {
"pt": "Aveiro"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "02",
"region": {
"pt": "Beja"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "03",
"region": {
"pt": "Braga"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "04",
"region": {
"pt": "Bragança"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "05",
"region": {
"pt": "Castelo Branco"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "06",
"region": {
"pt": "Coimbra"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "07",
"region": {
"pt": "Évora"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "08",
"region": {
"pt": "Faro"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "09",
"region": {
"pt": "Guarda"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "10",
"region": {
"pt": "Leiria"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "11",
"region": {
"pt": "Lisboa"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "12",
"region": {
"pt": "Portalegre"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "13",
"region": {
"pt": "Porto"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "14",
"region": {
"pt": "Santarém"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "15",
"region": {
"pt": "Setúbal"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "16",
"region": {
"pt": "Viana do Castelo"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "17",
"region": {
"pt": "Vila Real"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "18",
"region": {
"pt": "Viseu"
},
"codes": {
"at-tax-country-region": "PT"
}
},
{
"code": "20",
"region": {
"pt": "Região Autónoma dos Açores"
},
"codes": {
"at-tax-country-region": "PT-AC"
}
},
{
"code": "30",
"region": {
"pt": "Região Autónoma da Madeira"
},
"codes": {
"at-tax-country-region": "PT-MA"
}
}
],
"currency": "EUR",
"tags": [
{
Expand Down
1 change: 1 addition & 0 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var skipExamplePaths = []string{
"build/",
".out.",
"/out/",
"data/",
".github",
}

Expand Down
8 changes: 8 additions & 0 deletions regimes/co/data.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package co

import "embed"

//go:embed data

// Data contains local data specific for Colombia
var Data embed.FS
Loading

0 comments on commit ef12b6c

Please sign in to comment.