Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring zones so that data is lazy loaded when needed #207

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading