forked from invopop/gobl.fatturapa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheu.go
42 lines (39 loc) · 805 Bytes
/
eu.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package fatturapa
import "github.com/invopop/gobl/l10n"
var euCountries = []l10n.CountryCode{
l10n.AT, // Austria
l10n.BE, // Belgium
l10n.BG, // Bulgaria
l10n.HR, // Croatia
l10n.CY, // Cyprus
l10n.CZ, // Czech Republic
l10n.DK, // Denmark
l10n.EE, // Estonia
l10n.FI, // Finland
l10n.FR, // France
l10n.DE, // Germany
l10n.GR, // Greece
l10n.HU, // Hungary
l10n.IE, // Ireland
l10n.IT, // Italy
l10n.LV, // Latvia
l10n.LT, // Lithuania
l10n.LU, // Luxembourg
l10n.MT, // Malta
l10n.NL, // Netherlands
l10n.PL, // Poland
l10n.PT, // Portugal
l10n.RO, // Romania
l10n.SK, // Slovakia
l10n.SI, // Slovenia
l10n.ES, // Spain
l10n.SE, // Sweden
}
func isEUCountry(c l10n.CountryCode) bool {
for _, cc := range euCountries {
if c == cc {
return true
}
}
return false
}